
Research
SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.
javascript-serialize
Advanced tools
stringify all kinds of js values
var javascriptserialize = require('javascript-serialize')
var Buffer = require('buffer').Buffer
var x = { leaf: 'leaf' }
x['aCircle'] = x
console.log(javascriptserialize(x))
console.log(javascriptserialize(new Buffer(5)))
console.log(javascriptserialize({a:'x', fn:function(x){return 5}}))
console.log(javascriptserialize(new Date))
console.log(javascriptserialize({a:'b',c:[1,2,3],x:{y:{z:['a',{b:'c'}]}}}))
console.log(javascriptserialize(null))
console.log(javascriptserialize(undefined))
console.log(javascriptserialize("hey"))
console.log(javascriptserialize(false))
console.log(javascriptserialize(true))
console.log(javascriptserialize(function asdf () {}))
console.log(javascriptserialize(12))
console.log(javascriptserialize(/asdf/))
console.log(javascriptserialize((function(){ return arguments })(1,true)))
console.log(javascriptserialize([]))
console.log(javascriptserialize(document.createElement('div')))
console.log(javascriptserialize(NaN))
console.log(javascriptserialize(new Error('Ups! Something wrong...')))
FAQs
stringify all kinds of js values
The npm package javascript-serialize receives a total of 1,002 weekly downloads. As such, javascript-serialize popularity was classified as popular.
We found that javascript-serialize 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.

Research
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.

Company News
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.

Security News
npm now links to Socket's security analysis on every package page. Here's what you'll find when you click through.