@rosen-bridge/json-bigint
v0.1.0
Published
A wrapper to json-bigint package with pre-set configurations
Downloads
1,147
Readme
@rosen-bridge/json-bigint
Table of contents
Introduction
A wrapper to json-bigint package with pre-set configurations
Installation
npm:
npm i @rosen-bridge/json-bigint
yarn:
yarn add @rosen-bridge/json-bigint
Usage
import JsonBigInt from '@rosen-bridge/json-bigint';
const json = {
a: 100000000000000000000n,
b: 1n,
};
const jsonString = '{"a":100000000000000000000,"b":1}';
const parsedJson = JsonBigInt.parse(jsonString);
const stringifiedJson = JsonBigInt.stringify(json);