You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
509 B

4 years ago
  1. 'use strict'
  2. const u = require('universalify').fromCallback
  3. const jsonFile = require('./jsonfile')
  4. jsonFile.outputJson = u(require('./output-json'))
  5. jsonFile.outputJsonSync = require('./output-json-sync')
  6. // aliases
  7. jsonFile.outputJSON = jsonFile.outputJson
  8. jsonFile.outputJSONSync = jsonFile.outputJsonSync
  9. jsonFile.writeJSON = jsonFile.writeJson
  10. jsonFile.writeJSONSync = jsonFile.writeJsonSync
  11. jsonFile.readJSON = jsonFile.readJson
  12. jsonFile.readJSONSync = jsonFile.readJsonSync
  13. module.exports = jsonFile