Files
NapCatQQ/.pnpm-store/v3/files/37/544b04f7fcc7ff01faac90ef6dde42e9e6bf612f625f663df7ffccf52ed9bb376aa13a907b8da4c4b0967cdf665963bc7580780b78faa718584de74e47d459
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

15 lines
395 B
Plaintext

const fs = require('./fs.js')
const getOptions = require('./common/get-options.js')
const withOwner = require('./with-owner.js')
const writeFile = async (file, data, opts) => {
const options = getOptions(opts, {
copy: ['encoding', 'mode', 'flag', 'signal'],
wrap: 'encoding',
})
return withOwner(file, () => fs.writeFile(file, data, options), opts)
}
module.exports = writeFile