{"_id":"read-json-sync","_rev":"16-992b7c0fef56887a811a28e214042224","name":"read-json-sync","description":"Read and parse a JSON file synchronously","dist-tags":{"latest":"2.0.1"},"versions":{"1.0.0":{"name":"read-json-sync","version":"1.0.0","description":"Read and parse a JSON file synchronously","repository":{"type":"git","url":"https://github.com/shinnn/read-json-sync"},"author":{"name":"Shinnosuke Watanabe","url":"https://github.com/shinnn"},"scripts":{"pretest":"eslint *.js & jscs *.js","test":"node test.js | tap-spec","coverage":"istanbul cover test.js","coveralls":"${npm_package_scripts_coverage} && istanbul-coveralls"},"licenses":[{"type":"MIT","url":"https://github.com/shinnn/read-json-sync/blob/master/LICENSE"}],"files":["index.js","LICENSE"],"keywords":["json","virtual","file","parse","synchronous","sync"],"devDependencies":{"eslint":"^0.8.2","istanbul":"^0.3.2","istanbul-coveralls":"^1.0.0","jscs":"^1.6.2","require-main":"^0.1.1","tap-spec":"^1.0.0","tape":"^3.0.0"},"gitHead":"20b136c93b6744bc6a38e83bc8254887ba037531","bugs":{"url":"https://github.com/shinnn/read-json-sync/issues"},"homepage":"https://github.com/shinnn/read-json-sync","_id":"read-json-sync@1.0.0","_shasum":"1858a54b248a98fe732930c61dd2fd77b51e693f","_from":".","_npmVersion":"2.1.2","_nodeVersion":"0.10.32","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"dist":{"shasum":"1858a54b248a98fe732930c61dd2fd77b51e693f","tarball":"https://registry.npmjs.org/read-json-sync/-/read-json-sync-1.0.0.tgz","integrity":"sha512-CaUTisFFAVdE38lHBjl1FmNbf7+rttMeA7NzrcIj5cl1Mk8ij6bv+YK/0NnC0GS8xdBFW60K/Q46dVsUgaU69Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDYx1JKb7SAMBgaZi1qQ/QCGpwTTjp6mIZFKqXALiHlSAiEAvKRmdoqLesc5YsZ4MWTIVf6DWC3RUBw3nbF8aqVKMr8="}]},"directories":{}},"1.1.0":{"name":"read-json-sync","version":"1.1.0","description":"Read and parse a JSON file synchronously","repository":{"type":"git","url":"https://github.com/shinnn/read-json-sync"},"author":{"name":"Shinnosuke Watanabe","url":"https://github.com/shinnn"},"scripts":{"pretest":"jscs index.js test/*.js && eslint index.js test/*.js","test":"node test/test.js | tap-spec","coverage":"istanbul cover test/test.js","coveralls":"${npm_package_scripts_coverage} && istanbul-coveralls"},"licenses":[{"type":"MIT","url":"https://github.com/shinnn/read-json-sync/blob/master/LICENSE"}],"files":["index.js"],"keywords":["json","file","read","parse","synchronous","sync"],"dependencies":{"graceful-fs":"^3.0.5"},"devDependencies":{"eslint":"^0.14.1","istanbul":"^0.3.6","istanbul-coveralls":"^1.0.1","jscs":"^1.11.3","tap-spec":"^2.2.1","tape":"^3.5.0"},"jscsConfig":{"preset":"google","maximumLineLength":98,"requireBlocksOnNewline":true,"validateLineBreaks":"LF"},"gitHead":"d0ff0b5375a6928bb39648c7a9ba7fa911635772","bugs":{"url":"https://github.com/shinnn/read-json-sync/issues"},"homepage":"https://github.com/shinnn/read-json-sync","_id":"read-json-sync@1.1.0","_shasum":"8d597a6a3ba0bf550e4fe39b76da310ab9bd56e9","_from":".","_npmVersion":"2.5.1","_nodeVersion":"1.2.0","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"dist":{"shasum":"8d597a6a3ba0bf550e4fe39b76da310ab9bd56e9","tarball":"https://registry.npmjs.org/read-json-sync/-/read-json-sync-1.1.0.tgz","integrity":"sha512-vEKK1n4xcTSem19DMN7zQcSkRl4guYXmyjlKdYYLvbnicDhaJYAXQqL25jwOGVZBR6SyYUDCpWc9R+IBErJ/5g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDGCZDNCkvtw+WKHyTYPStAExm0i0zQPkvrpvkh57RDmAiBuHZvx2rXXHSysqkXRkqYbxZlY6Gmkjr/ym3aZkuIikw=="}]},"directories":{}},"1.1.1":{"name":"read-json-sync","version":"1.1.1","description":"Read and parse a JSON file synchronously","repository":{"type":"git","url":"git+https://github.com/shinnn/read-json-sync.git"},"author":{"name":"Shinnosuke Watanabe","url":"https://github.com/shinnn"},"scripts":{"pretest":"eslint --config @shinnn/node-legacy index.js test/test.js","test":"node --strong_mode --throw-deprecation --track-heap-objects test/test.js | tap-spec","coverage":"node --strong_mode node_modules/.bin/istanbul cover test/test.js"},"license":"MIT","files":["index.js"],"keywords":["data","json","file","read","load","parse","synchronous","synchronously","sync"],"dependencies":{"graceful-fs":"^4.1.2"},"devDependencies":{"@shinnn/eslint-config-node-legacy":"^1.0.0","eslint":"^1.7.3","istanbul":"^0.4.0","tap-spec":"^4.1.0","tape":"^4.2.2"},"gitHead":"0999728ef395e327129fa5754c3f9d8d6040188b","bugs":{"url":"https://github.com/shinnn/read-json-sync/issues"},"homepage":"https://github.com/shinnn/read-json-sync#readme","_id":"read-json-sync@1.1.1","_shasum":"43c669ae864aae308dfbbb2721a67e295ec8fff6","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.1.0","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"dist":{"shasum":"43c669ae864aae308dfbbb2721a67e295ec8fff6","tarball":"https://registry.npmjs.org/read-json-sync/-/read-json-sync-1.1.1.tgz","integrity":"sha512-gsW+Au195RPGTIAlJ+rNMwI5Zo6l7au+ZbMDs5pXw7Y1duGk6ZXnEbZq3o7PLuv6jD521bvjvto5imTyulSHBw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDY/CTR1AxIc+QUTUd2JYRGgltdrYX7+zBf669sAWyAEAiEArkxljDBMaKQqWxO+sFYmHKumldF13/0rmbirz0QrmQU="}]},"directories":{}},"2.0.0-0":{"name":"read-json-sync","version":"2.0.0-0","description":"Read and parse a JSON file synchronously","repository":{"type":"git","url":"git+https://github.com/shinnn/read-json-sync.git"},"author":{"name":"Shinnosuke Watanabe","url":"https://github.com/shinnn"},"scripts":{"pretest":"eslint --fix --format=codeframe index.js test/test.js","test":"node --throw-deprecation --track-heap-objects test/test.js | tap-spec","coverage":"istanbul cover test/test.js"},"license":"CC0-1.0","files":["index.js"],"keywords":["data","json","file","read","load","parse","synchronous","synchronously","sync"],"dependencies":{"graceful-fs":"^4.1.11"},"devDependencies":{"@shinnn/eslint-config-node":"^4.0.2","eslint":"^4.4.1","istanbul":"^0.4.5","tap-spec":"^4.1.1","tape":"^4.8.0"},"eslintConfig":{"extends":"@shinnn/node"},"gitHead":"1038e4c2af31dec5409b5d87aa6c38bb39aa0214","bugs":{"url":"https://github.com/shinnn/read-json-sync/issues"},"homepage":"https://github.com/shinnn/read-json-sync#readme","_id":"read-json-sync@2.0.0-0","_npmVersion":"5.3.0","_nodeVersion":"8.3.0","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"dist":{"integrity":"sha512-JU9XRZcNZG9Mq/TmCTz/HoXGXj3s3GCX29v8bUNX0+vZJb39x55R61RozSs4uHGNyq78VL1lJwJ/WILAyIp0HQ==","shasum":"d1fa98316083f9e73bc1c4bab31747c486c9edba","tarball":"https://registry.npmjs.org/read-json-sync/-/read-json-sync-2.0.0-0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGa0Hwn7r3Ij2mC5CUJB6GaP/D+Q6FvrecK3ilGSCuJtAiBKd5dbLAtGGsPW+M6LRloz6G82ahuu04Tynx6kNimKkQ=="}]},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/read-json-sync-2.0.0-0.tgz_1502633065632_0.07025285460986197"},"directories":{}},"2.0.0-1":{"name":"read-json-sync","version":"2.0.0-1","description":"Read and parse a JSON file synchronously","repository":{"type":"git","url":"git+https://github.com/shinnn/read-json-sync.git"},"author":{"name":"Shinnosuke Watanabe","url":"https://github.com/shinnn"},"scripts":{"pretest":"eslint --fix --format=codeframe index.js test/test.js","test":"istanbul cover test/test.js"},"license":"CC0-1.0","files":["index.js"],"keywords":["data","json","file","read","load","parse","synchronous","synchronously","sync"],"dependencies":{"graceful-fs":"^4.1.11"},"devDependencies":{"@shinnn/eslint-config-node":"^4.0.2","eslint":"^4.6.1","istanbul":"^0.4.5","tape":"^4.8.0"},"eslintConfig":{"extends":"@shinnn/node"},"gitHead":"c778fb9ff480d2747597a53fed015161f06d977a","bugs":{"url":"https://github.com/shinnn/read-json-sync/issues"},"homepage":"https://github.com/shinnn/read-json-sync#readme","_id":"read-json-sync@2.0.0-1","_npmVersion":"5.4.1","_nodeVersion":"8.5.0","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"dist":{"integrity":"sha512-4/CBr4gjOK9SZgdrC5PTD6Wwe7edHtuencM/7dyVG1k6O0vQtB4CRrUDnrZjLIfoYDL8An07psPxBc8+obxk1w==","shasum":"307fc82bcb0cbd6da86ac4b910fee32a4b41e824","tarball":"https://registry.npmjs.org/read-json-sync/-/read-json-sync-2.0.0-1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHXXuTExrPazkgM3t0trslCip3PVMDvfIK1xuRpsQ/iGAiEAutplveHub6IJNbKf8Lc4e4aeWqW2S0vuTQy3cBM8MRo="}]},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/read-json-sync-2.0.0-1.tgz_1505294762975_0.35565764969214797"},"directories":{}},"2.0.0-2":{"name":"read-json-sync","version":"2.0.0-2","description":"Read and parse a JSON file synchronously","repository":{"type":"git","url":"git+https://github.com/shinnn/read-json-sync.git"},"author":{"name":"Shinnosuke Watanabe","url":"https://github.com/shinnn"},"scripts":{"bench":"node benchmark/runner string-slice && node benchmark/runner string-replace && node benchmark/runner buffer-string-slice","pretest":"eslint --fix --format=codeframe benchmark index.js test","test":"istanbul cover test/test.js"},"license":"CC0-1.0","files":["index.js"],"keywords":["data","json","file","read","load","parse","synchronous","synchronously","sync"],"dependencies":{"graceful-fs":"^4.1.11"},"devDependencies":{"@shinnn/eslint-config-node":"^4.0.2","chalk":"^2.3.0","eslint":"^4.10.0","istanbul":"^0.4.5","tape":"^4.8.0"},"eslintConfig":{"extends":"@shinnn/node"},"gitHead":"7c49c794d496e4ae9e636acd0de6cb28145e2553","bugs":{"url":"https://github.com/shinnn/read-json-sync/issues"},"homepage":"https://github.com/shinnn/read-json-sync#readme","_id":"read-json-sync@2.0.0-2","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"dist":{"integrity":"sha512-OcE9WtF17jTCrAuAGmtwu+OdGoiWeOCsW1Kw8wwLPKOcne9td49ZTc8wr9mV3qphtO5UWd6nV1o+T6hTXZ7uiw==","shasum":"432087fe34619e93f23af612e455879e4f78ec3e","tarball":"https://registry.npmjs.org/read-json-sync/-/read-json-sync-2.0.0-2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD0Igs28wf8ZAqMYeosYr6mfCbRzs/ignVoD79+zLGJkAIhAKypphzQO0KyojkmOhENhSoMZNFq1AL3auGJHi/YLNc8"}]},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/read-json-sync-2.0.0-2.tgz_1510283094401_0.08672054624184966"},"directories":{}},"2.0.0-3":{"name":"read-json-sync","version":"2.0.0-3","description":"Read and parse a JSON file synchronously","repository":{"type":"git","url":"git+https://github.com/shinnn/read-json-sync.git"},"author":{"name":"Shinnosuke Watanabe","url":"https://github.com/shinnn"},"scripts":{"bench":"node benchmark/runner string-slice && node benchmark/runner string-replace && node benchmark/runner buffer-string-slice","pretest":"eslint --fix --format=codeframe benchmark index.js test","test":"istanbul cover test/test.js"},"license":"CC0-1.0","files":["index.js"],"keywords":["data","json","file","read","load","parse","synchronous","synchronously","sync"],"dependencies":{"graceful-fs":"^4.1.11"},"devDependencies":{"@shinnn/eslint-config-node":"^4.0.2","chalk":"^2.3.0","eslint":"^4.11.0","istanbul":"^0.4.5","tape":"^4.8.0"},"eslintConfig":{"extends":"@shinnn/node"},"gitHead":"322364393b15d74f006c7fc3780caa3a6838b138","bugs":{"url":"https://github.com/shinnn/read-json-sync/issues"},"homepage":"https://github.com/shinnn/read-json-sync#readme","_id":"read-json-sync@2.0.0-3","_npmVersion":"5.5.1","_nodeVersion":"9.1.0","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"dist":{"integrity":"sha512-5yGD8zc3cl/rLJI+Y80r/yfMk7y+uGbdpUqoyICy9442ZJ3Q1i6fUM1LDaTxvfcV2+QeuKvZ3FwzygfXizom/A==","shasum":"0c2f6e2aa951158b6df6721651b9fce244c218d0","tarball":"https://registry.npmjs.org/read-json-sync/-/read-json-sync-2.0.0-3.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQChNDw2yP24YNaE2AkVzsJj9LP5FDIBNxXpKpb75YSZ2wIhAOueeM8ycOL3EyjDwWR9b2vwlVUgEiIG1F4UQeNh+Iq+"}]},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/read-json-sync-2.0.0-3.tgz_1510635928887_0.3584493272937834"},"directories":{}},"2.0.0":{"name":"read-json-sync","version":"2.0.0","description":"Read and parse a JSON file synchronously","repository":{"type":"git","url":"git+https://github.com/shinnn/read-json-sync.git"},"author":{"name":"Shinnosuke Watanabe","url":"https://github.com/shinnn"},"scripts":{"bench":"node benchmark/runner string-slice && node benchmark/runner string-replace && node benchmark/runner buffer-string-slice","pretest":"eslint --fix --format=codeframe benchmark index.js test","test":"istanbul cover test/test.js"},"license":"ISC","files":["index.js"],"keywords":["data","json","file","read","load","bom","parse","synchronous","synchronously","sync"],"dependencies":{"graceful-fs":"^4.1.11"},"devDependencies":{"@shinnn/eslint-config-node":"^4.0.2","chalk":"^2.3.0","eslint":"^4.11.0","istanbul":"^0.4.5","tape":"^4.8.0"},"eslintConfig":{"extends":"@shinnn/node"},"gitHead":"7f33aaed54bde97b988e37be62ac40df8a0c1d10","bugs":{"url":"https://github.com/shinnn/read-json-sync/issues"},"homepage":"https://github.com/shinnn/read-json-sync#readme","_id":"read-json-sync@2.0.0","_npmVersion":"5.5.1","_nodeVersion":"9.2.0","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"dist":{"integrity":"sha512-3w/Gh40X24GJACTWhbs9d7adcLTeQ+/6RgDN4Tq2lmwgLFC7cdBmEZt/uPg2HqL1Le64zrvAQpQlP7QxGFDI+A==","shasum":"3a70d68f14c9b83047a460a105489eb3735bfe00","tarball":"https://registry.npmjs.org/read-json-sync/-/read-json-sync-2.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG2DRvXMs18zJjdHDYopGYbNkBT09gbioPc9heCfJZWdAiB90ACtyG3aig69Vm8TeUKOSYK0azsLvkB59GWCnLXqZg=="}]},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/read-json-sync-2.0.0.tgz_1510788833412_0.23487907904200256"},"directories":{}},"2.0.1":{"name":"read-json-sync","version":"2.0.1","description":"Read and parse a JSON file synchronously","repository":{"type":"git","url":"git+https://github.com/shinnn/read-json-sync.git"},"author":{"name":"Shinnosuke Watanabe","url":"https://github.com/shinnn"},"license":"ISC","scripts":{"bench":"node benchmark/runner string-slice && node benchmark/runner string-replace && node benchmark/runner buffer-string-slice","pretest":"eslint .","test":"nyc node test/test.js"},"keywords":["data","json","file","read","load","bom","parse","synchronous","synchronously","sync"],"devDependencies":{"@shinnn/eslint-config":"^6.8.7","chalk":"^2.4.1","eslint":"^5.10.0","nyc":"^13.1.0","nyc-config-common":"^1.0.1","tape":"^4.9.1"},"eslintConfig":{"extends":"@shinnn"},"nyc":{"extends":"nyc-config-common"},"gitHead":"4bbbe43750dec0ae4d101769b9b4d38aa7e573d3","bugs":{"url":"https://github.com/shinnn/read-json-sync/issues"},"homepage":"https://github.com/shinnn/read-json-sync#readme","_id":"read-json-sync@2.0.1","_npmVersion":"6.5.0","_nodeVersion":"11.4.0","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"dist":{"integrity":"sha512-8ZJRyVJ6jKMzXsuoTTb/LPQusL/bNdNZi1GV5cZ8m9JSvHGIfI7caizhNOPkLVaZWGUrARc88cAftSnRE1liDg==","shasum":"3f3107bc485c6be7317bd9a6feb3331e9993ea03","tarball":"https://registry.npmjs.org/read-json-sync/-/read-json-sync-2.0.1.tgz","fileCount":4,"unpackedSize":5060,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcFkxcCRA9TVsSAnZWagAAnZoP/i8vxlxg5yqeBs9CCfjp\nwd1dTCfUCY2Sq6moJBeki3jXy1u/79dg4+cIFI9jbVxUnkyM7EXK8tBemmbF\nhVGjGu/VwM7gdJQbD/CGhxAYODUqQmuevK3CmacpGqIEwqCizCRgFouXZKi1\nKFeZoATZdbBfIkbopnywjqvbF+k7ZMzA8INIl3FYiK4Ym5va1w97bLue7BCd\nld7/0I/pePuM08vHcNWqNOWpxWCAGKyTPyemR2rbr3rQVmzBGNzco9d4j8Uf\nqXNVtb4k9/O6ibZ2yhtogjGEIf6yX1FYl8gXMLWYT47idiAiIN9ZAb+yRZYi\n98x1JWKpNvKcKyNWvgAdGChodX49QdRavl8baDFdd3DskZ5MkTN8dmZiDfmI\nscSKFOiAo0r3KcShmbSE+cjZmk+pXhCgMx4oqChcddF0WXyMUjiVLcAww80H\nOgaxi2dDVehf9DUQL5AYGImvZv8U9KPIeMlURqB2Ikyu9mVN+ORX+C5FngSy\n+1edyJ9HIalJf9Nxkg1X40wVTO+21gt6uWwj8yhKtQcn961lMSPwFNNwB0bP\nIjbDeUZyE1xGCS2TPDz9Gz8b19ym+fX7xBDAFfSzOGSYKDJ6lNv33w0LN2my\n01BSlMW9K4X77dmhU6gg2920UliAc9ZdhBCP0mgh2S0QJEvCI8M532Y5rgzf\nNnXb\r\n=nKOy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHBl9I6yVrZs0lNAIA91MsiKoMG7ZflpM7wMo++HTxIVAiAJ0+soqFGlWppDQ6gL5fdahpxp4RqFE5QouqdqNwaHZg=="}]},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/read-json-sync_2.0.1_1544965211968_0.7205293821099812"},"_hasShrinkwrap":false}},"readme":"# read-json-sync\n\n[![npm version](https://img.shields.io/npm/v/read-json-sync.svg)](https://www.npmjs.com/package/read-json-sync)\n[![Build Status](https://travis-ci.com/shinnn/read-json-sync.svg?branch=master)](https://travis-ci.com/shinnn/read-json-sync)\n[![Coverage Status](https://img.shields.io/coveralls/shinnn/read-json-sync.svg)](https://coveralls.io/github/shinnn/read-json-sync)\n\nA [Node.js](https://nodejs.org/) module to read and parse a [JSON](https://json.org/) file synchronously\n\n```javascript\nconst readJsonSync = require('read-json-sync');\n\nreadJsonSync('package.json'); //=> {name: 'read-json-sync', version: '1.0.0', ...}\n```\n\nNode.js built-in [`require`](https://nodejs.org/api/globals.html#globals_require) and [`import`](https://nodejs.org/api/esm.html#esm_interop_with_existing_modules) can do almost the same thing, but this module doesn't [cache](https://nodejs.org/api/modules.html#modules_caching) results.\n\n## Installation\n\n[Use](https://docs.npmjs.com/cli/install) [npm](https://docs.npmjs.com/about-npm/).\n\n```\nnpm install read-json-sync\n```\n\n## API\n\n```javascript\nconst readJsonSync = require('read-json-sync');\n```\n\n### readJsonSync(*path* [, *options*])\n\n*path*: `string` [`Buffer`](https://nodejs.org/api/buffer.html#buffer_class_buffer) [`URL`](https://nodejs.org/api/url.html#url_class_url) (JSON filename) or `integer` (file descriptor)  \n*options*: `Object` `string` ([`fs.readFile`](https://nodejs.org/api/fs.html#fs_fs_readfile_path_options_callback) options or an encoding of the file)  \nReturn: `any` (parsed [JSON](https://tools.ietf.org/html/rfc7159) data)\n\nIt automatically ignores the leading [byte order mark](https://unicode.org/faq/utf_bom.html).\n\n```javascript\n// with-bom.json: '\\uFEFF{\"a\": 1}'\n\nJSON.parse('\\uFEFF{\"a\": 1}'); // throws a SyntaxError\n\nreadJsonSync('with-bom.json'); //=> {a: 1}\n```\n\n## License\n\n[ISC License](./LICENSE) © 2017 - 2018 Shinnosuke Watanabe\n","maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"time":{"modified":"2022-06-26T09:13:48.472Z","created":"2014-10-09T14:08:36.194Z","1.0.0":"2014-10-09T14:08:36.194Z","1.1.0":"2015-02-20T08:14:37.633Z","1.1.1":"2015-12-04T19:18:06.866Z","1.1.2":"2017-07-31T11:15:14.317Z","2.0.0-0":"2017-08-13T14:04:25.706Z","2.0.0-1":"2017-09-13T09:26:03.060Z","2.0.0-2":"2017-11-10T03:04:54.486Z","2.0.0-3":"2017-11-14T05:05:29.015Z","2.0.0":"2017-11-15T23:33:53.485Z","2.0.1":"2018-12-16T13:00:12.132Z"},"homepage":"https://github.com/shinnn/read-json-sync#readme","keywords":["data","json","file","read","load","bom","parse","synchronous","synchronously","sync"],"repository":{"type":"git","url":"git+https://github.com/shinnn/read-json-sync.git"},"author":{"name":"Shinnosuke Watanabe","url":"https://github.com/shinnn"},"bugs":{"url":"https://github.com/shinnn/read-json-sync/issues"},"readmeFilename":"README.md","license":"ISC"}