GitShow/sindresorhus/safe-stringify
sindresorhus

safe-stringify

Serialize objects to JSON with handling for circular references

by sindresorhus
Star on GitHubForknpm

JavaScript

162 stars7 forks3 contributorsQuiet · 5mo agoSince 2022v1.3.0MIT

Meet the team

See all 3 on GitHub →
sindresorhus
sindresorhus17 contributions
Meir017
Meir0171 contribution
sstur
sstur1 contribution

Languages

View on GitHub →
JavaScript97.1%
TypeScript2.9%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
71
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent fixes

View closed PRs →
binyamin
Optionally, replace circular references with the key it points toClosedIssue

Currently, circular references are each replaced with the string . It would be helpful to identify which key the circular reference points to.

binyamin · 5mo ago
sstur
Don't recreate the replacer each timeMergedPR

This should be more efficient on large (or heavily nested) objects if we don't re-create the replacer function within the loop.

sstur · 1y ago
guiccbr
Attempt to stringify Error object returns an empty objectClosedIssue

Thanks for the amazing work. This is happening to me though, not sure if it's expected. Thanks

guiccbr · 1y ago
Structured data for AI agents

Repository: sindresorhus/safe-stringify. Description: Serialize objects to JSON with handling for circular references Stars: 162, Forks: 7. Primary language: JavaScript. Languages: JavaScript (97.1%), TypeScript (2.9%). License: MIT. Latest release: v1.3.0 (5mo ago). Open PRs: 0, open issues: 0. Last activity: 5mo ago. Community health: 71%. Top contributors: sindresorhus, Meir017, sstur.

·@ofershap

Replace github.com with gitshow.dev