printJson.js 260 B

12345
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.printJson = void 0;
  4. const printJson = (tab = '', json, space = 2) => (JSON.stringify(json, null, space) || 'nil').split('\n').join('\n' + tab);
  5. exports.printJson = printJson;