source: node_modules/fs-extra/lib/json/output-json.js@ e48199a

main
Last change on this file since e48199a was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 272 bytes
Line 
1'use strict'
2
3const { stringify } = require('jsonfile/utils')
4const { outputFile } = require('../output')
5
6async function outputJson (file, data, options = {}) {
7 const str = stringify(data, options)
8
9 await outputFile(file, str, options)
10}
11
12module.exports = outputJson
Note: See TracBrowser for help on using the repository browser.