Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

devaluex

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

devaluex

A plugin system for `devalue` to serialize and deserialize complex objects with support for async plugins.

latest
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

devaluex

A plugin system for devalue to serialize and deserialize complex objects with support for async plugins.

Usage

Use stringifyAsync and parse for async plugins.

import { stringifyAsync, parse, BlobPlugin } from 'devaluex'

const a = await stringifyAsync(
  { a: 1, b: new Blob(['123']) },
  {
    plugins: [BlobPlugin],
  },
)
const b = parse(a, {
  plugins: [BlobPlugin],
})
console.log(b) // { a: 1, b: Blob { size: 3, type: '' } }

Supported Types

TypeSupported
NaN
Infinity
-Infinity
-0
number
string
boolean
null
undefined
bigint
Array
sparse (holey) Arrays
Object
RegExp
Date
Map
Set
Object.create(null)
ArrayBuffer
DataView1
Int8Array
Int16Array
Int32Array
Uint8Array
Uint16Array
Uint32Array
Uint8ClampedArray
Float32Array
Float64Array
BigInt64Array
BigUint64Array
Error1
AggregateError1
EvalError1
RangeError1
ReferenceError1
SyntaxError1
TypeError1
URIError1
Promise
Iterable1
Well-known symbols1
AsyncIterable1
Built-in streaming primitive
Cyclic references
Isomorphic references
URL1
URLSearchParams1
Blob1
File1
Headers1
FormData1
ReadableStream1
Request1
Response1
Event1
CustomEvent1
DOMException1
ImageData1
AbortSignal

Footnotes

FAQs

Package last updated on 28 May 2025

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