!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/usr/local/lib/node_modules/strapi/node_modules/quick-format-unescaped/test/   drwxr-xr-x
Free 13.05 GB of 57.97 GB (22.51%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     index.js (2.34 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
'use strict';
const assert = require('assert');
const format = require('../');
// const symbol = Symbol('foo');

// assert.equal(format([]), '');
// assert.equal(format(['']), '');
// assert.equal(format([[]]), '[]');
// assert.equal(format([{}]), '{}');
// assert.equal(format([null]), 'null');
// assert.equal(format([true]), 'true');
// assert.equal(format([false]), 'false');
// assert.equal(format(['test']), 'test');

// // // CHECKME this is for console.log() compatibility - but is it *right*?
// assert.equal(format(['foo', 'bar', 'baz']), 'foo bar baz');

// // ES6 Symbol handling
// // assert.equal(format([symbol]), 'Symbol(foo)');
// // assert.equal(format(['foo', symbol]), 'foo Symbol(foo)');
// // assert.equal(format(['%s', symbol]), 'Symbol(foo)');
// // assert.equal(format(['%j', symbol]), 'undefined');
// // assert.throws(function() {
// //   format(['%d', symbol]);
// // }, TypeError);

// assert.equal(format(['%d', 42.0]), '42');
// assert.equal(format(['%d', 42]), '42');
// assert.equal(format(['%s', 42]), '42');
// assert.equal(format(['%j', 42]), '42');

assert.equal(format(['%d', undefined]), '%d');
assert.equal(format(['%s', undefined]), 'undefined');
assert.equal(format(['%j', undefined]), '%j');


assert.equal(format(['%d', null]), '%d');
assert.equal(format(['%s', null]), 'null');
assert.equal(format(['%j', null]), 'null');


// assert.equal(format(['%d', '42.0']), '42');
// assert.equal(format(['%d', '42']), '42');
// assert.equal(format(['%s', '42']), '42');
// assert.equal(format(['%j', '42']), '"42"');

// assert.equal(format(['%%s%s', 'foo']), '%sfoo');

// assert.equal(format(['%s']), '%s');
// assert.equal(format(['%s', undefined]), 'undefined');
// assert.equal(format(['%s', 'foo']), 'foo');
assert.equal(format(['%s', '\"quoted\"']), '\"quoted\"');
assert.equal(format(['%j', { s: '\"quoted\"' }]), '{\"s\":\"\\"quoted\\"\"}');
// assert.equal(format(['%s:%s']), '%s:%s');
// assert.equal(format(['%s:%s', undefined]), 'undefined:%s');
// assert.equal(format(['%s:%s', 'foo']), 'foo:%s');
// assert.equal(format(['%s:%s', 'foo', 'bar']), 'foo:bar');
// assert.equal(format(['%s:%s', 'foo', 'bar', 'baz']), 'foo:bar baz');
// // assert.equal(format(['%%%s%%', 'hi']), '%hi%');
// // assert.equal(format(['%%%s%%%%', 'hi']), '%hi%%');

// (function() {
//   var o = {};
//   o.o = o;
//   assert.equal(format(['%j', o]), '[Circular]');
// })();

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0044 ]--