2017-05-24 15:10:37 +02:00
|
|
|
'use strict'
|
|
|
|
|
|
|
|
const u = require('universalify').fromCallback
|
|
|
|
const jsonFile = require('./jsonfile')
|
|
|
|
|
|
|
|
jsonFile.outputJson = u(require('./output-json'))
|
2017-08-14 05:01:11 +02:00
|
|
|
jsonFile.outputJsonSync = require('./output-json-sync')
|
2017-05-24 15:10:37 +02:00
|
|
|
// aliases
|
|
|
|
jsonFile.outputJSON = jsonFile.outputJson
|
2017-08-14 05:01:11 +02:00
|
|
|
jsonFile.outputJSONSync = jsonFile.outputJsonSync
|
2017-05-24 15:10:37 +02:00
|
|
|
jsonFile.writeJSON = jsonFile.writeJson
|
|
|
|
jsonFile.writeJSONSync = jsonFile.writeJsonSync
|
|
|
|
jsonFile.readJSON = jsonFile.readJson
|
|
|
|
jsonFile.readJSONSync = jsonFile.readJsonSync
|
|
|
|
|
|
|
|
module.exports = jsonFile
|