GitShow/sindresorhus/stringify-object
sindresorhus

stringify-object

Stringify an object/array like JSON.stringify just without all the double-quotes

by sindresorhus
Star on GitHubForknpm

JavaScript

325 stars43 forks21 contributorsActive · 3d agoSince 2012v7.0.0BSD-2-Clause

Meet the team

See all 21 on GitHub →
sindresorhus
sindresorhus90 contributions
SBoudrias
SBoudrias10 contributions
searls
searls3 contributions
danilosampaio
danilosampaio2 contributions
arthurvr
arthurvr2 contributions
verhovsky
verhovsky1 contribution
cpiber
cpiber1 contribution
chuvikovd
chuvikovd1 contribution

Languages

View on GitHub →
JavaScript100%

Commit activity

Last 12 weeks · 2 commits

Full graph →

Community health

4 of 6 standards met

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

Recent fixes

View closed PRs →
GHolk
Stringify most methods and function properties correctlyMergedPR

I saw you merge some PRs. Maybe you will interested in this PR, too? These commits will stringify following object correctly: It also handle comment between function name and function body. (See test cases) I saw you close #65 , but I want this feature, so I add it in my own fork. I add many test cases for this feature. If you would like to merge these commits, I can rebase them on the current version.

GHolk · 9mo ago
leonbloy
Map not supportedClosedIssue

It would be nice that the Map object were supported https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map https://stackoverflow.com/questions/29085197/how-do-you-json-stringify-an-es6-map

leonbloy · 10mo ago
DanielSWolf
Special characters are not escaped correctlyClosedIssue

I believe that doesn't correctly escape special characters in strings. Consider the following program: I'd expect to give results similar to , in that both should return a valid JavaScript expression. However, both the tab character and the backslash are not escaped, but are copied to the output verbatim. In the case of the tab character, the resulting code is unexpected but still technically correct. In the case of the backslash, the resulting code is no valid JavaScript any more, but leaves an unterminated string. Only the newline character is escaped as expected.

DanielSWolf · 10mo ago
Structured data for AI agents

Repository: sindresorhus/stringify-object. Description: Stringify an object/array like JSON.stringify just without all the double-quotes Stars: 325, Forks: 43. Primary language: JavaScript. Languages: JavaScript (100%). License: BSD-2-Clause. Latest release: v7.0.0 (3d ago). Open PRs: 0, open issues: 0. Last activity: 3d ago. Community health: 85%. Top contributors: sindresorhus, SBoudrias, searls, danilosampaio, arthurvr, verhovsky, cpiber, chuvikovd, forivall, GHolk and others.

·@ofershap

Replace github.com with gitshow.dev