1.1.0 • Published 12 months ago

json-codec v1.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
12 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

12 months ago

1.0.3

12 months ago

1.0.2

12 months ago

1.0.1

12 months ago

1.0.0

12 months ago