1.0.0 • Published 10 months ago

@skyrpex/string-codec v1.0.0

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

@skyrpex/string-codec

Encodes stringifiable objects into a string while retaining the original object type.

Installation

npm install @skyrpex/string-codec

Usage

import * as stringCodec from "@skyrpex/string-codec";

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

const decoded = jsonCodec.parse(encoded);
// decoded = { key: "value" }

Other codecs

1.0.0

10 months ago