Socket
Socket
Sign inDemoInstall

@joshdb/serialize

Package Overview
Dependencies
0
Maintainers
1
Versions
309
Alerts
File Explorer

Advanced tools

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


Version published
Weekly downloads
2
decreased by-66.67%
Maintainers
1
Install size
40.5 kB
Created
Weekly downloads
ย 

Readme

Source

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

Last updated on 09 Jun 2023

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with โšก๏ธ by Socket Inc