Gathering detailed insights and metrics for jest-serializer
Gathering detailed insights and metrics for jest-serializer
Gathering detailed insights and metrics for jest-serializer
Gathering detailed insights and metrics for jest-serializer
npm install jest-serializer
Typescript
Module System
Min. Node Version
Node Version
NPM Version
TypeScript (79.11%)
JavaScript (20.31%)
CSS (0.56%)
Shell (0.01%)
Handlebars (0.01%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
44,885 Stars
7,448 Commits
6,571 Forks
561 Watchers
5 Branches
1,575 Contributors
Updated on Jul 12, 2025
Latest Version
28.0.0
Package Id
jest-serializer@28.0.0
Unpacked Size
6.50 kB
Size
2.81 kB
File Count
5
NPM Version
lerna/4.0.0/node@v16.14.2+x64 (darwin)
Node Version
16.14.2
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
2
1
DEPRECATED: Use
v8
APIs directly: https://nodejs.org/api/v8.html#serialization-api
Module for serializing and deserializing object into memory and disk. The Node core v8
implementations are used. This seriializer have the advantage of being able to serialize Map
, Set
, undefined
, NaN
, etc..
1$ yarn add jest-serializer
Three kinds of API groups are exposed:
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.
1import {deserialize, serialize} from 'jest-serializer'; 2 3const myObject = { 4 foo: 'bar', 5 baz: [0, true, '2', [], {}], 6}; 7 8const buffer = serialize(myObject); 9const myCopyObject = deserialize(buffer);
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.
1import {readFileSync, writeFileSync} from 'jest-serializer'; 2 3const myObject = { 4 foo: 'bar', 5 baz: [0, true, '2', [], {}], 6}; 7 8const myFile = '/tmp/obj'; 9 10writeFileSync(myFile, myObject); 11const myCopyObject = readFileSync(myFile);
No vulnerabilities found.
Reason
30 commit(s) and 6 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
security policy file detected
Details
Reason
license file detected
Details
Reason
all dependencies are pinned
Details
Reason
project is fuzzed
Details
Reason
binaries present in source code
Details
Reason
Found 21/30 approved changesets -- score normalized to 7
Reason
branch protection is not maximal on development and all release branches
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
15 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More