1.1.0 • Published 1 year ago

json-codec v1.1.0

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

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago