forked from olcxjas-softworks/LarpixClient
Update gitignore (sorry)
This commit is contained in:
parent
a8f8c4d7ad
commit
cca8b02fea
6604 changed files with 1219661 additions and 4 deletions
14
electron/node_modules/@npmcli/fs/lib/write-file.js
generated
vendored
Normal file
14
electron/node_modules/@npmcli/fs/lib/write-file.js
generated
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue