New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

true-json-bigint

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

true-json-bigint - npm Package Compare versions

Comparing version 0.4.5 to 0.4.6

index.d.ts

2

package.json
{
"name": "true-json-bigint",
"version": "0.4.5",
"version": "0.4.6",
"description": "Enhanced fork of json-bigint that allows parsing all big number values in JSON strings.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -18,5 +18,7 @@ true-json-bigint

### Examples
Parse JSON strings as described in the next example:
```
```js
const JSONbig = require('true-json-bigint');

@@ -28,4 +30,4 @@

console.log(result); // { smallNumber: 1,
// bigNumber: BigNumber { s: 1, e: 26, c: [ 9876543211234, 56789987654321 ] } }
console.log(result);
// { smallNumber: 1, bigNumber: BigNumber { s: 1, e: 26, c: [ 9876543211234, 56789987654321 ] } }
```

@@ -35,3 +37,3 @@

```
```js
const JSONbig = require('true-json-bigint');

@@ -46,3 +48,4 @@ const BigNumber = require('bignumber.js');

console.log(result); // {"smallNumber":1,"bigNumber":9.87654321123456789987654321e+26}
console.log(result);
// {"smallNumber":1,"bigNumber":9.87654321123456789987654321e+26}

@@ -49,0 +52,0 @@ ```

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc