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

load-json-file

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

load-json-file - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

9

package.json
{
"name": "load-json-file",
"version": "1.0.1",
"version": "1.1.0",
"description": "Read and parse a JSON file",

@@ -34,3 +34,3 @@ "license": "MIT",

"pify": "^2.0.0",
"pinkie-promise": "^1.0.0",
"pinkie-promise": "^2.0.0",
"strip-bom": "^2.0.0"

@@ -41,3 +41,8 @@ },

"xo": "*"
},
"xo": {
"ignores": [
"test.js"
]
}
}

@@ -18,5 +18,5 @@ # load-json-file [![Build Status](https://travis-ci.org/sindresorhus/load-json-file.svg?branch=master)](https://travis-ci.org/sindresorhus/load-json-file)

```js
var loadJsonFile = require('load-json-file');
const loadJsonFile = require('load-json-file');
loadJsonFile('foo.json').then(function (json) {
loadJsonFile('foo.json').then(json => {
console.log(json);

@@ -23,0 +23,0 @@ //=> {foo: true}

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