
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
prototype-stringify
Advanced tools
stringify simple object, including data in prototypes.
npm install prototype-stringify
var a = { b: 1, c: { d: 2 }, e: { f: 3 } };
var aa = Object.create(a);
aa.bb = 11;
aa.c.dd = 22;
aa.e = Object.create(a.e);
aa.e.ff = 33;
var s1 = JSON.stringify(aa); //JSON.stringify() exclude data in prototype
console.log("JSON.stringify():\n\t" + s1);
//{"bb":11,"e":{"ff":33}}
var s2 = prototype_stringify(aa); //to include data in prototypes
console.log("prototype_stringify():\n\t" + s2);
//{"b":1,"bb":11,"c":{"d":2,"dd":22},"e":{"f":3,"ff":33}}
/*
var expect = {
b: 1,
bb: 11,
c: {
d: 2,
dd: 22
},
e: {
f: 3,
ff: 33
}
};
*/
FAQs
stringify simple object, including data in prototypes.
The npm package prototype-stringify receives a total of 1 weekly downloads. As such, prototype-stringify popularity was classified as not popular.
We found that prototype-stringify demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.