A better way to serialize Node.js data types to and from a JSON compatible format.
- Written in TypeScript
- Offers CommonJS and ESM
- Fully tested
You can use the following command to install this package, or replace npm install
with your package manager of choice.
npm install better-serialize
import { stringify, parse } from 'better-serialize';
stringify('Hello World!'); // '{type:8,value:"Hello World!"}'
parse('{t:8,v:"Hello World!"}'); // 'Hello World!'
While currently we do not have a dedicated way to view documentation for this package, you can still use the intellisense from your IDE and read our source code.