mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-05 17:39:30 +08:00
12 lines
272 B
Text
12 lines
272 B
Text
'use strict'
|
|
|
|
const { stringify } = require('jsonfile/utils')
|
|
const { outputFile } = require('../output')
|
|
|
|
async function outputJson (file, data, options = {}) {
|
|
const str = stringify(data, options)
|
|
|
|
await outputFile(file, str, options)
|
|
}
|
|
|
|
module.exports = outputJson
|