JSPM

structured-clone-es

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 327527
  • Score
    100M100P100Q179892F
  • License ISC

A re-distribution of @ungap/structured-clone for Node.js comptaible ES Modules

Package Exports

  • structured-clone-es

Readme

structured-clone-es

npm version npm downloads bundle JSDocs License

A redistribution of @ungap/structured-clone that ships Node.js compatible ESM.

As @ungap/structured-clone use .js for both CJS and ESM, making the ESM version not working in Node.js. This package re-bundles it, ships TypeScript definitions, and adds ESM support for Node.js.

import { parse, stringify, structuredClone } from 'structured-clone-es'

The structuredClone function is moved from default export to named export. parse and stringify are also exported from the main entry, the /json sub module is removed.