
Security News
npm Introduces minimumReleaseAge and Bulk OIDC Configuration
npm rolls out a package release cooldown and scalable trusted publishing updates as ecosystem adoption of install safeguards grows.
@mikeal/realistic-structured-clone
Advanced tools
A pure JS implementation of the structured clone algorithm (or at least something pretty close to that)
This is a fork of https://github.com/dumbmatter/realistic-structured-clone with Node.js support removed in order to bring down the bundle size in the browser. Recent versions of Node.js have a much better/faster way to do deep clones using v8 serialize/deserialize.
This is a pure JS implementation of the structured clone algorithm (or at least something pretty close to that).
$ npm install @mikeal/realistic-structured-clone
Then use it:
// First load the module
// (Use Browserify or something if you're targeting the web)
var structuredClone = require('@mikeal/realistic-structured-clone');
// Clone a variable (will throw a DataCloneError for invalid input)
var clonedX = structuredClone(x);
Apache 2.0
FAQs
A pure JS implementation of the structured clone algorithm (or at least something pretty close to that)
The npm package @mikeal/realistic-structured-clone receives a total of 0 weekly downloads. As such, @mikeal/realistic-structured-clone popularity was classified as not popular.
We found that @mikeal/realistic-structured-clone 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
npm rolls out a package release cooldown and scalable trusted publishing updates as ecosystem adoption of install safeguards grows.

Security News
AI agents are writing more code than ever, and that's creating new supply chain risks. Feross joins the Risky Business Podcast to break down what that means for open source security.

Research
/Security News
Socket uncovered four malicious NuGet packages targeting ASP.NET apps, using a typosquatted dropper and localhost proxy to steal Identity data and backdoor apps.