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

@pouchlab/json

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pouchlab/json

a Blazing fast json serialization and deserialization. Bigint,Date,Function,REgexp,Map and more

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

Pjson

a Blazing fast json serialization and deserialization. Bigint,Date,Function,REgexp,Map and more.

Key features

  • fast serialization and deserialization.
  • lightweight - super small less than 5kb.
  • Type safety with autocompletion
  • multi-runtime - runs everywhere js runs.
  • Framework agnostic
npm  install @pouchlab/json

supported data types

  • Map
  • Set
  • URL
  • Strings
  • Functions
  • Regexp
  • Date
  • Bigint
  • list
  • object
  • undefined
  • null

usage

import Json from "@pouchlab/json" //or import {Json} from "@pouchlab/json"


let m = new Set()
let ob = {
  test:"hi"
}
//map
let map = new Map().set("ob",ob)

let rgx = /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/

m.add([()=>{}])
m.add(["kkk",{ab:2,fn:async ()=>{},r: new Date(),x: rgx}])
console.log(Json.parse(Json.stringify({s:m,map,["aj",null,undefined],fn:async ()=>{},b:BigInt(5)})))

Benchmark

benchmark through tinybench bench

support

support the development of this project,financial and code contribution are welcomed. Made with love by Pouchlabs & core-team.

Keywords

json

FAQs

Package last updated on 23 Sep 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