"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.beautifyJs = void 0;
/**
 * 该文件用于封装js-beautify方法
 */
const js_beautify_1 = __importDefault(require("js-beautify"));
// 格式化js
function beautifyJs(data, options = {}) {
    return js_beautify_1.default.js(data, Object.assign({ indent_size: 2 }, options));
}
exports.beautifyJs = beautifyJs;
exports.default = {
    beautifyJs,
};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmVhdXRpZnktZmlsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3V0aWxzL2JlYXV0aWZ5LWZpbGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQUE7O0dBRUc7QUFDSCw4REFBa0M7QUFFbEMsUUFBUTtBQUNSLFNBQWdCLFVBQVUsQ0FBQyxJQUFZLEVBQUUsVUFBa0IsRUFBRTtJQUMzRCxPQUFPLHFCQUFRLENBQUMsRUFBRSxDQUFDLElBQUksa0JBQ3JCLFdBQVcsRUFBRSxDQUFDLElBQ1gsT0FBTyxFQUNWLENBQUE7QUFDSixDQUFDO0FBTEQsZ0NBS0M7QUFFRCxrQkFBZTtJQUNiLFVBQVU7Q0FDWCxDQUFBIn0=