output-json-sync.js 271 B

123456789101112
  1. 'use strict'
  2. const { stringify } = require('jsonfile/utils')
  3. const { outputFileSync } = require('../output')
  4. function outputJsonSync (file, data, options) {
  5. const str = stringify(data, options)
  6. outputFileSync(file, str, options)
  7. }
  8. module.exports = outputJsonSync