Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.13
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
share /
nodejs /
@nodelib /
fs.walk /
out /
[ HOME SHELL ]
Name
Size
Permission
Action
providers
[ DIR ]
drwxr-xr-x
readers
[ DIR ]
drwxr-xr-x
tests
[ DIR ]
drwxr-xr-x
types
[ DIR ]
drwxr-xr-x
index.d.ts
1.03
KB
-rw-r--r--
index.d.ts.map
1022
B
-rw-r--r--
index.js
1.38
KB
-rw-r--r--
index.spec.d.ts
52
B
-rw-r--r--
index.spec.d.ts.map
114
B
-rw-r--r--
index.spec.js
4.02
KB
-rw-r--r--
settings.d.ts
1.21
KB
-rw-r--r--
settings.d.ts.map
1.16
KB
-rw-r--r--
settings.js
1.23
KB
-rw-r--r--
settings.spec.d.ts
55
B
-rw-r--r--
settings.spec.d.ts.map
120
B
-rw-r--r--
settings.spec.js
1.28
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : index.spec.js
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const assert = require("assert"); const fs = require("fs"); const rimraf = require("rimraf"); const _1 = require("."); const entryFilter = (entry) => !entry.dirent.isDirectory(); function streamToPromise(stream) { const entries = []; return new Promise((resolve, reject) => { stream.on('data', (entry) => entries.push(entry)); stream.once('error', reject); stream.once('end', () => resolve(entries)); }); } describe('Package', () => { before(() => { rimraf.sync('fixtures'); fs.mkdirSync('fixtures'); fs.writeFileSync('fixtures/file.txt', ''); fs.mkdirSync('fixtures/nested'); fs.writeFileSync('fixtures/nested/file.txt', ''); }); after(() => { rimraf.sync('fixtures'); }); describe('.walk', () => { it('should throw an error for non-exist directory', (done) => { _1.walk('non-exist-directory', (error, entries) => { assert.strictEqual(error.code, 'ENOENT'); assert.strictEqual(entries, undefined); done(); }); }); it('should work without options or settings', (done) => { _1.walk('fixtures', (error, entries) => { assert.strictEqual(error, null); assert.strictEqual(entries.length, 3); done(); }); }); it('should work with options', (done) => { _1.walk('fixtures', { entryFilter }, (error, entries) => { assert.strictEqual(error, null); assert.strictEqual(entries.length, 2); done(); }); }); it('should work with settings', (done) => { const settings = new _1.Settings({ entryFilter }); _1.walk('fixtures', settings, (error, entries) => { assert.strictEqual(error, null); assert.strictEqual(entries.length, 2); done(); }); }); }); describe('.walkStream', () => { it('should throw an error for non-exist directory', async () => { const stream = _1.walkStream('non-exist-directory'); await assert.rejects(() => streamToPromise(stream), (error) => error.code === 'ENOENT'); }); it('should work without options or settings', async () => { const stream = _1.walkStream('fixtures'); const actual = await streamToPromise(stream); assert.strictEqual(actual.length, 3); }); it('should work with options', async () => { const stream = _1.walkStream('fixtures', { entryFilter }); const actual = await streamToPromise(stream); assert.strictEqual(actual.length, 2); }); it('should work with settings', async () => { const settings = new _1.Settings({ entryFilter }); const stream = _1.walkStream('fixtures', settings); const actual = await streamToPromise(stream); assert.strictEqual(actual.length, 2); }); }); describe('.walkSync', () => { it('should throw an error for non-exist directory', () => { const matcher = (error) => error.code === 'ENOENT'; assert.throws(() => _1.walkSync('non-exist-directory'), matcher); }); it('should work without options or settings', () => { const actual = _1.walkSync('fixtures'); assert.strictEqual(actual.length, 3); }); it('should work with options', () => { const actual = _1.walkSync('fixtures', { entryFilter }); assert.strictEqual(actual.length, 2); }); it('should work with settings', () => { const settings = new _1.Settings({ entryFilter }); const actual = _1.walkSync('fixtures', settings); assert.strictEqual(actual.length, 2); }); }); });
Close