@meteor-it/ajson

> AJSON = JSON + More data types

Stats

StarsIssuesVersionUpdatedCreatedSize
@meteor-it/ajson
0.4.202 years ago4 years agoMinified + gzip package size for @meteor-it/ajson in KB

Readme

AJSON

AJSON = JSON + More data types

Types supported

  • Infinity
  • -Infinity
  • NaN
  • RegExp
  • Date
  • Buffer
  • undefined
  • Function

Usage

import AJSON from '@meteor-it/ajson';

const a = AJSON.stringify({
    a: Infinity,
    b: -Infinity,
    c: NaN,
    d: /[a-z]+/ig,
    e: new Date(),
    f: new Buffer([0xf6,0xcf]),
    g: undefined,
    h: (a,b) => a+b;
});

const b = AJSON.parse(a);

// b will have the same props as a

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.