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

json-parse

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

json-parse

Simple module that parses a given JSON file

  • 0.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
196
decreased by-2.49%
Maintainers
1
Weekly downloads
 
Created
Source

About

Simple module that parses a given JSON file. At the moment it only supports async, but I plan on expanding it to not only support async + sync for local JSON, but HTTP requests and maybe even streams (much like twitter's) for remote JSON :)

Install

You can install this through npm:

$ npm install json-parse

Basic Use

Async:

var json = require("json-parse");
json.async("./test.json", function (error, data)
{
  if (!error)
  {
    console.log(data.something_from_test_dot_json);
  }
  else
  {
    console.log("test.json doesnt exist!");
  }
});

License

Copyright 2011, do whatever you want, just dont sue me. If you want a more elaborate answer, look at the FreeBSD / MIT styled licenses.

Keywords

FAQs

Package last updated on 24 Sep 2011

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