New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

txon

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

txon

Serialization library for node and browser

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

TXON GitHub Build Status codecov

TXON, not a new serialization format, is also JSON, but the content is somewhat different from the result generated from native JSON, that makes it more expressive than the native JSON.

Why

  • Supports references, saves more space.
  • Supports circular structure, no more such error message: Uncaught TypeError: Converting circular structure to JSON.
  • Supports custom parsers to serialize/deserialize anything.

Currently supported by default:

  • anything JSON supported
  • Date
  • NaN and ±Infinity
  • ArrayBuffer and TypedArrays

Installation

npm install txon

Usage

Please refer to the unit test codes in /test/ directory.

Keywords

serialization

FAQs

Package last updated on 26 Nov 2020

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