1 # load-json-file [![Build Status](https://travis-ci.org/sindresorhus/load-json-file.svg?branch=master)](https://travis-ci.org/sindresorhus/load-json-file)
3 > Read and parse a JSON file
5 [Strips UTF-8 BOM](https://github.com/sindresorhus/strip-bom), uses [`graceful-fs`](https://github.com/isaacs/node-graceful-fs), and throws more [helpful JSON errors](https://github.com/sindresorhus/parse-json).
11 $ npm install --save load-json-file
18 const loadJsonFile = require('load-json-file');
20 loadJsonFile('foo.json').then(json => {
29 ### loadJsonFile(filepath)
31 Returns a promise for the parsed JSON.
33 ### loadJsonFile.sync(filepath)
35 Returns the parsed JSON.
40 - [write-json-file](https://github.com/sindresorhus/write-json-file) - Stringify and write JSON to a file atomically
45 MIT © [Sindre Sorhus](https://sindresorhus.com)