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

json-extension

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-extension

Json Extension

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
0
Created
Source

json-extension

Functions for extended JSON stringification and parsing that supports most commonly used types, such as bigint, Date, Set, and Map. Replaces and revives extended types using objects with __json_bigint__, __json_date__, __json_set__, and __json_map__ properties.

Target: ES2022 [browser+NodeJS][ESM+CJS].

replace

JSON replacer for JSON.stringify function. Replaces extended type values with wrapper objects.

revive

JSON reviver for JSON.parse function. Revives extended type values from wrapper objects.

stringify

Returns JSON string with extended type values wrapped into objects.

parse

Returns value with extended type values parsed from wrapper objects.

Keywords

JSON

FAQs

Package last updated on 24 Jun 2024

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