Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

better-serialize

RealShadowNova1.1kMIT2.0.0TypeScript support: included

A better way to serialize

readme

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.

changelog

Changelog

All notable changes to this project will be documented in this file.

2.0.0 - (2024-04-23)

🚀 Features

  • Update Node to v20 (4fa98ea)

    • 💥 BREAKING CHANGE: Drop support for Node.js v16 and v18
  • Serialize: Add information to errors for tracing data types (e5dc61c)

1.0.0 - (2023-02-28)

🚀 Features