1.0.0 • Published 10 months ago
@skyrpex/string-codec v1.0.0
@skyrpex/string-codec
Encodes stringifiable objects into a string while retaining the original object type.
Installation
npm install @skyrpex/string-codecUsage
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