Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fast-json-stringify

Package Overview
Dependencies
Maintainers
2
Versions
160
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fast-json-stringify - npm Package Compare versions

Comparing version 2.4.1 to 2.4.2

5

package.json
{
"name": "fast-json-stringify",
"version": "2.4.1",
"version": "2.4.2",
"description": "Stringify your JSON at max speed",

@@ -57,3 +57,4 @@ "main": "index.js",

]
}
},
"runkitExampleFilename": "example.js"
}

25

README.md

@@ -33,2 +33,3 @@ # fast-json-stringify

- <a href="#example">`Example`</a>
- <a href="#options">`Options`</a>
- <a href="#api">`API`</a>

@@ -52,2 +53,3 @@ - <a href="#fastJsonStringify">`fastJsonStringify`</a>

<a name="example"></a>
Try it out on RunKit: <a href="https://runkit.com/npm/fast-json-stringify">https://runkit.com/npm/fast-json-stringify</a>
## Example

@@ -84,2 +86,22 @@

```
<a name="options"></a>
## Options
Optionally, you may provide to `fast-json-stringify` an option object as second parameter:
```js
const fastJson = require('fast-json-stringify')
const stringify = fastJson(mySchema, {
schema: { ... },
ajv: { ... },
rounding: 'ceil'
})
```
- `schema`: external schemas references by $ref property. [More details](#ref)
- `ajv`: ajv instance's settings for those properties that require `ajv`. [More details](#anyof)
- `rounding`: setup how the `integer` types will be rounded when not integers. [More details](#integer)
<a name="api"></a>

@@ -90,4 +112,3 @@ ## API

Build a `stringify()` function based on
[jsonschema](http://json-schema.org/).
Build a `stringify()` function based on [jsonschema](http://json-schema.org/).

@@ -94,0 +115,0 @@ Supported types:

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