npm.io
2.0.0 • Published 2 years ago

better-serialize

Licence
MIT
Version
2.0.0
Deps
0
Size
64 kB
Vulns
0
Weekly
0
Stars
1

Better Serialize

A better way to serialize

GitHub npm codecov

Support Server


Description

A better way to serialize Node.js data types to and from a JSON compatible format.

Features

  • Written in TypeScript
  • Offers CommonJS and ESM
  • Fully tested

Installation

You can use the following command to install this package, or replace npm install with your package manager of choice.

npm install better-serialize

Quick Start

import { stringify, parse } from 'better-serialize';

stringify('Hello World!'); // '{type:8,value:"Hello World!"}'

parse('{t:8,v:"Hello World!"}'); // 'Hello World!'

Documentation

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.