0.0.3 • Published 12 months ago

@golden-tiger/serializer v0.0.3

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
12 months ago

@golden-tiger/serializer

parse

Parse a string to a valid JS value.

stringify

Serialize a JS value to a JS string.

Example

import Serializer from '@golden-tiger/serializer'; // mjs
const Serializer = require('@golden-tiger/serializer'); // cjs

console.log(Serializer.parse('[true]'));
// [true]

console.log(Serializer.stringify([true]));
// [
//  true
// ]
0.0.3

12 months ago

0.0.2

1 year ago

0.0.1

1 year ago