JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 64
  • Score
    100M100P100Q87450F
  • License MIT

De✨light✨ful serialization of complex JavaScript types including Errors, Web API objects (Request/Response/Headers/URL), special numbers, cycles, and aliases

Package Exports

  • @lumenize/structured-clone

Readme

@lumenize/structured-clone

De✨light✨ful serialization of complex JavaScript types.

For complete documentation, visit https://lumenize.com/docs/structured-clone

Features

  • Platform Independent: Works in Node.js, browsers, Deno, Bun, and Cloudflare Workers
  • Full Type Support: Errors with stack traces and custom properties, Web API objects (Request, Response, Headers, URL), special numbers (NaN, ±Infinity), circular references, and all standard structured-clone types
  • Zero Dependencies: No external packages required
  • Async API: Handles Request/Response body streaming

Installation

npm install @lumenize/structured-clone