ghaction-github-pages/node_modules/fs-extra/lib/json/output-json-sync.js

13 lines
271 B
JavaScript
Raw Normal View History

2019-11-15 23:20:34 +08:00
'use strict'
2020-03-23 17:00:06 +08:00
const { stringify } = require('jsonfile/utils')
const { outputFileSync } = require('../output')
2019-11-15 23:20:34 +08:00
function outputJsonSync (file, data, options) {
2020-03-23 17:00:06 +08:00
const str = stringify(data, options)
2019-11-15 23:20:34 +08:00
2020-03-23 17:00:06 +08:00
outputFileSync(file, str, options)
2019-11-15 23:20:34 +08:00
}
module.exports = outputJsonSync