2019-11-15 23:20:34 +08:00
|
|
|
'use strict'
|
|
|
|
|
2020-03-23 17:00:06 +08:00
|
|
|
const u = require('universalify').fromPromise
|
2019-11-15 23:20:34 +08:00
|
|
|
const jsonFile = require('./jsonfile')
|
|
|
|
|
|
|
|
jsonFile.outputJson = u(require('./output-json'))
|
|
|
|
jsonFile.outputJsonSync = require('./output-json-sync')
|
|
|
|
// aliases
|
|
|
|
jsonFile.outputJSON = jsonFile.outputJson
|
|
|
|
jsonFile.outputJSONSync = jsonFile.outputJsonSync
|
|
|
|
jsonFile.writeJSON = jsonFile.writeJson
|
|
|
|
jsonFile.writeJSONSync = jsonFile.writeJsonSync
|
|
|
|
jsonFile.readJSON = jsonFile.readJson
|
|
|
|
jsonFile.readJSONSync = jsonFile.readJsonSync
|
|
|
|
|
|
|
|
module.exports = jsonFile
|