New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

devalue-codec

Package Overview
Dependencies
Maintainers
0
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

devalue-codec

Uses devalue serialize expressions while retaining the original object type

latest
npmnpm
Version
1.2.0
Version published
Weekly downloads
29
26.09%
Maintainers
0
Weekly downloads
 
Created
Source

devalue-codec

Uses devalue to serialize expressions while retaining the original object type.

Accepts the following types, including arrays and objects:

  • string
  • number
  • boolean
  • Date
  • bigint
  • Map
  • Set
  • ArrayBuffer
  • Int8Array
  • Int16Array
  • Int32Array
  • Uint8Array
  • Uint16Array
  • Uint32Array
  • Uint8ClampedArray
  • RegExp
  • undefined
  • null

Installation

npm install devalue-codec

Usage

import { stringify, parse } from "devalue-codec";

const encoded = stringify({
	key: "value",
});

const decoded = parse(encoded);

Other codecs

FAQs

Package last updated on 07 Feb 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