This package has been deprecated

Author message:

@joshdb/serialize is no longer maintained. Please use better-serialize instead.

@joshdb/serialize
TypeScript icon, indicating that this package has built-in type declarations

2.0.0-beta.0 • Public • Published

Josh Logo

@joshdb/serialize

A serialize utility for the Josh project

GitHub codecov npm

Support Server

This package has been deprecated. Please use the better-serialize instead.

Description

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

Features

  • Written in TypeScript
  • Offers ESM and CommonJS support
  • 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 @joshdb/serialize

Quick Start

import { Serialize } from '@joshdb/serialize';

Serialize.toJSON('Hello World!'); // { type: 'string', value: 'Hello World!' }

Serialize.fromJSON({ type: 'string', value: 'Hello World!' }); // 'Hello World!'

/@joshdb/serialize/

    Package Sidebar

    Install

    npm i @joshdb/serialize

    Weekly Downloads

    141

    Version

    2.0.0-beta.0

    License

    none

    Unpacked Size

    41.5 kB

    Total Files

    7

    Last publish

    Collaborators

    • eslachance