📁 File Manager Pro
v10.0.3 | PHP: 8.2.31
Server: LiteSpeed
2026-06-28 19:39:28
📂
/ (Root)
/
opt
/
alt
/
alt-nodejs16
/
root
/
usr
/
lib
/
node_modules
/
npm
/
node_modules.bundled
/
@npmcli
/
fs
/
lib
📍 /opt/alt/alt-nodejs16/root/usr/lib/node_modules/npm/node_modules.bundled/@npmcli/fs/lib
🔄 Refresh
✏️
Editing: write-file.js
Read Only
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
💾 Save Changes
❌ Cancel