New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

really-load-json

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

really-load-json

Load and parse a JSON file, either sync or async

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

really-load-json

Load and parse a JSON file, either sync or async

Usage

var reallyLoadJSON = require('really-load-json');

// Load this module's package.json to demo
var packageData = reallyLoadJSON.sync('package.json');
console.log('This module name is', packageData.name);

// Or async
reallyLoadJSON.async('package.json', function(err, packageData) {
	console.log('(async) This module name is', packageData.name);
});

Have a look at example.js.

Tests

Tests are in tests.js and built with nodeunit. Run npm test to run the tests.

Keywords

json

FAQs

Package last updated on 21 Jul 2015

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