load-json-file
Advanced tools
Comparing version 5.0.0 to 5.1.0
@@ -18,3 +18,6 @@ 'use strict'; | ||
module.exports = (filePath, options) => pify(fs.readFile)(filePath, 'utf8').then(data => parse(data, filePath, options)); | ||
const loadJsonFile = (filePath, options) => pify(fs.readFile)(filePath, 'utf8').then(data => parse(data, filePath, options)); | ||
module.exports = loadJsonFile; | ||
module.exports.default = loadJsonFile; | ||
module.exports.sync = (filePath, options) => parse(fs.readFileSync(filePath, 'utf8'), filePath, options); |
{ | ||
"name": "load-json-file", | ||
"version": "5.0.0", | ||
"version": "5.1.0", | ||
"description": "Read and parse a JSON file", | ||
@@ -16,6 +16,7 @@ "license": "MIT", | ||
"scripts": { | ||
"test": "xo && ava" | ||
"test": "xo && ava && tsd-check" | ||
}, | ||
"files": [ | ||
"index.js" | ||
"index.js", | ||
"index.d.ts" | ||
], | ||
@@ -39,4 +40,5 @@ "keywords": [ | ||
"ava": "*", | ||
"tsd-check": "^0.2.1", | ||
"xo": "*" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5150
5
58
3