Socket
Book a DemoInstallSign in
Socket

structured-clone

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

structured-clone

Implements the [structured clone algorithm](https://developer.mozilla.org/en-US/docs/Web/Guide/API/DOM/The_structured_clone_algorithm) to clone JSON types, RegExp, Buffers, and Dates. This module also supports serializing and deserializing an object from

Source
npmnpm
Version
0.1.1
Version published
Weekly downloads
3K
-22.42%
Maintainers
1
Weekly downloads
 
Created
Source

structured-clone

Implements the structured clone algorithm to clone JSON types, RegExp, Buffers, and Dates. This module also supports serializing and deserializing an object from a buffer.

npm install structured-clone
var clone = require('structured-clone');
  • clone(obj) → Object
  • clone.serialize(obj) → Buffer
  • clone.deserialize(buf) → Object

FAQs

Package last updated on 07 Mar 2014

Did you know?

Socket

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.

Install

Related posts