🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

@joshdb/serialize

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@joshdb/serialize

A serialize utility to be able to convert nodejs data types into a json compatible format

2.0.0-beta.0
latest
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created

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!'

Keywords

FAQs

Package last updated on 09 Jun 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts