txon

1.0.1 • Public • Published

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.

Package Sidebar

Install

npm i txon

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

238 kB

Total Files

34

Last publish

Collaborators

  • y1j2x34