mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-27 15:30:57 +00:00
17 lines
377 B
JavaScript
17 lines
377 B
JavaScript
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.default = saveJSON;
|
|
|
|
var _fs = require("./fs");
|
|
|
|
function saveJSON(cssFile, json) {
|
|
return new Promise((resolve, reject) => {
|
|
const {
|
|
writeFile
|
|
} = (0, _fs.getFileSystem)();
|
|
writeFile(`${cssFile}.json`, JSON.stringify(json), e => e ? reject(e) : resolve(json));
|
|
});
|
|
} |