Installations
npm install abc-stringify
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
10.16.0
NPM Version
6.11.2
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Developer
johndstein
Download Statistics
Total Downloads
1,593
Last Day
1
Last Week
18
Last Month
49
Last Year
189
GitHub Statistics
5 Commits
1 Watching
1 Branches
1 Contributors
Package Meta Information
Latest Version
0.0.3
Package Id
abc-stringify@0.0.3
Unpacked Size
7.56 kB
Size
2.55 kB
File Count
4
NPM Version
6.11.2
Node Version
10.16.0
Total Downloads
Cumulative downloads
Total Downloads
1,593
Last day
0%
1
Compared to previous day
Last week
80%
18
Compared to previous week
Last month
345.5%
49
Compared to previous month
Last year
-53.2%
189
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
![Empty State](/_next/static/media/empty.e5fae2e5.png)
No dependencies detected.
abc-stringify
Safe, simple, configurable JSON.stringify()
Handles recursive objects.
Handles Error
objects and lets you specify your own error
replacer function.
Allows array replacers to either include or exclude keys.
Allows you to specify a list of values to replace (think passwords and keys in your config).
Allows omitting the replacer parameter and just pass the space parameter.
Quick Start
1let ss = new AbcStringify() 2const o = { 3 name: 'abc stringify', 4 error: new Error('something bad happened'), 5 address: { 6 street: '123 string st', 7 city: 'hershey', 8 st: 'pa', 9 zip: '17033' 10 }, 11 nest: { 12 really: { 13 deep: { 14 stuff: ['one', 2, { 15 another: 'thing here' 16 }] 17 } 18 } 19 } 20} 21o.circular = o 22console.log(ss.stringify(o, 2))
Output
1{ 2 "name": "abc stringify", 3 "error": { 4 "name": "Error", 5 "message": "something bad happened", 6 "stack": "Error: something bad happened\n at Object.<anonymous> (/abc-stringify/index.js:99:12)\n at Module._compile (internal/modules/cjs/loader.js:776:30)\n at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)\n at Module.load (internal/modules/cjs/loader.js:653:32)\n at tryModuleLoad (internal/modules/cjs/loader.js:593:12)\n at Function.Module._load (internal/modules/cjs/loader.js:585:3)\n at Function.Module.runMain (internal/modules/cjs/loader.js:829:12)\n at startup (internal/bootstrap/node.js:283:19)\n at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)" 7 }, 8 "address": { 9 "street": "123 string st", 10 "city": "hershey", 11 "st": "pa", 12 "zip": "17033" 13 }, 14 "nest": { 15 "really": { 16 "deep": { 17 "stuff": [ 18 "one", 19 2, 20 { 21 "another": "thing here" 22 } 23 ] 24 } 25 } 26 }, 27 "circular": "--circular--" 28}
![Empty State](/_next/static/media/empty.e5fae2e5.png)
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
Found 0/5 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
- Warn: no pull requests merged into dev branch
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
license file not detected
Details
- Warn: project does not have a license file
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Score
2.6
/10
Last Scanned on 2025-01-27
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