diff options
| author | Arman <[email protected]> | 2018-08-02 16:50:59 -0700 |
|---|---|---|
| committer | Arman <[email protected]> | 2018-08-02 16:50:59 -0700 |
| commit | 7d5a0696ccc642db0d14aae8677ecada40bf85d1 (patch) | |
| tree | 1bbbcf2f4c4a3a733326ac2401375f8d891cb2f1 /node_modules/fs-extra/lib/json | |
| parent | dialog box for adding items (diff) | |
| download | launcher-7d5a0696ccc642db0d14aae8677ecada40bf85d1.tar.xz launcher-7d5a0696ccc642db0d14aae8677ecada40bf85d1.zip | |
inital commit
Diffstat (limited to 'node_modules/fs-extra/lib/json')
| -rw-r--r-- | node_modules/fs-extra/lib/json/index.js | 9 | ||||
| -rw-r--r-- | node_modules/fs-extra/lib/json/jsonfile.js | 14 | ||||
| -rw-r--r-- | node_modules/fs-extra/lib/json/output-json-sync.js | 16 | ||||
| -rw-r--r-- | node_modules/fs-extra/lib/json/output-json.js | 24 |
4 files changed, 0 insertions, 63 deletions
diff --git a/node_modules/fs-extra/lib/json/index.js b/node_modules/fs-extra/lib/json/index.js deleted file mode 100644 index b13cf54..0000000 --- a/node_modules/fs-extra/lib/json/index.js +++ /dev/null @@ -1,9 +0,0 @@ -var jsonFile = require('./jsonfile') - -jsonFile.outputJsonSync = require('./output-json-sync') -jsonFile.outputJson = require('./output-json') -// aliases -jsonFile.outputJSONSync = require('./output-json-sync') -jsonFile.outputJSON = require('./output-json') - -module.exports = jsonFile diff --git a/node_modules/fs-extra/lib/json/jsonfile.js b/node_modules/fs-extra/lib/json/jsonfile.js deleted file mode 100644 index 51d8390..0000000 --- a/node_modules/fs-extra/lib/json/jsonfile.js +++ /dev/null @@ -1,14 +0,0 @@ -var jsonFile = require('jsonfile') - -module.exports = { - // jsonfile exports - readJson: jsonFile.readFile, - readJSON: jsonFile.readFile, - readJsonSync: jsonFile.readFileSync, - readJSONSync: jsonFile.readFileSync, - writeJson: jsonFile.writeFile, - writeJSON: jsonFile.writeFile, - writeJsonSync: jsonFile.writeFileSync, - writeJSONSync: jsonFile.writeFileSync, - spaces: 2 // default in fs-extra -} diff --git a/node_modules/fs-extra/lib/json/output-json-sync.js b/node_modules/fs-extra/lib/json/output-json-sync.js deleted file mode 100644 index 7684843..0000000 --- a/node_modules/fs-extra/lib/json/output-json-sync.js +++ /dev/null @@ -1,16 +0,0 @@ -var fs = require('graceful-fs') -var path = require('path') -var jsonFile = require('./jsonfile') -var mkdir = require('../mkdirs') - -function outputJsonSync (file, data, options) { - var dir = path.dirname(file) - - if (!fs.existsSync(dir)) { - mkdir.mkdirsSync(dir) - } - - jsonFile.writeJsonSync(file, data, options) -} - -module.exports = outputJsonSync diff --git a/node_modules/fs-extra/lib/json/output-json.js b/node_modules/fs-extra/lib/json/output-json.js deleted file mode 100644 index 7824597..0000000 --- a/node_modules/fs-extra/lib/json/output-json.js +++ /dev/null @@ -1,24 +0,0 @@ -var fs = require('graceful-fs') -var path = require('path') -var jsonFile = require('./jsonfile') -var mkdir = require('../mkdirs') - -function outputJson (file, data, options, callback) { - if (typeof options === 'function') { - callback = options - options = {} - } - - var dir = path.dirname(file) - - fs.exists(dir, function (itDoes) { - if (itDoes) return jsonFile.writeJson(file, data, options, callback) - - mkdir.mkdirs(dir, function (err) { - if (err) return callback(err) - jsonFile.writeJson(file, data, options, callback) - }) - }) -} - -module.exports = outputJson |