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

ajson

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ajson

Asynchronous versions of JSON.parse and JSON.stringify to not block the event loop

  • 0.3.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
20
increased by233.33%
Maintainers
1
Weekly downloads
 
Created
Source

AJSON

Gives you asynchronous versions of JSON.parse and JSON.stringify to prevent blocking the event loop too much when you parse and stringify big amounts of data.

Do not yet use AJSON.parse(), as it has a much higher memory footprint than JSON.parse(). The implementation for it will be changed.

Installation

npm install --save ajson

or

  • Clone or fork this repo
  • Run npm install .

Execution

var AJSON = require('ajson');

AJSON.parse("some_json_string", function(err, parsedData) {
  console.log(parsedData);
});

AJSON.stringify(someJsonObject, function(err, stringified) {
  console.log(stringified);
});

TODO

  • include a giant.json file

FAQs

Package last updated on 06 Dec 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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