1.1.0 • Published 10 months ago

json-codec v1.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

json-codec

Serializes JSON expressions while retaining the original object type.

Accepts the following primitives, including arrays and objects:

  • string
  • number
  • boolean
  • undefined
  • null

Installation

npm install json-codec

Usage

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

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

const decoded = parse(encoded);

Other codecs

1.1.0

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago