aboutsummaryrefslogtreecommitdiff
path: root/node_modules/fs-extra/lib/json/jsonfile.js
blob: 59cdb3e465e26edbd18fabccef2a82b980e05e05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
'use strict'

const u = require('universalify').fromCallback
const jsonFile = require('jsonfile')

module.exports = {
  // jsonfile exports
  readJson: u(jsonFile.readFile),
  readJsonSync: jsonFile.readFileSync,
  writeJson: u(jsonFile.writeFile),
  writeJsonSync: jsonFile.writeFileSync
}