{"_id":"jsonfile","_rev":"3822974","name":"jsonfile","description":"Easily read/write JSON files.","dist-tags":{"latest":"6.2.0"},"maintainers":[{"name":"jprichardson","email":""},{"name":"ryanzim","email":"opensrc@ryanzim.com"}],"time":{"modified":"2025-08-13T09:51:49.000Z","created":"2012-09-10T19:09:19.393Z","6.2.0":"2025-08-12T15:34:50.962Z","6.1.0":"2020-10-31T17:00:24.450Z","6.0.1":"2020-03-07T15:10:22.836Z","6.0.0":"2020-02-24T15:15:09.828Z","5.0.0":"2018-09-08T17:03:36.222Z","4.0.0":"2017-09-12T19:21:59.050Z","3.0.1":"2017-07-05T14:48:24.991Z","3.0.0":"2017-04-25T17:19:17.193Z","2.4.0":"2016-09-16T01:39:39.974Z","2.3.1":"2016-05-13T13:42:24.916Z","2.3.0":"2016-04-17T05:24:55.856Z","2.2.3":"2015-10-14T11:23:24.577Z","2.2.2":"2015-09-16T13:29:56.655Z","2.2.1":"2015-06-25T22:12:33.394Z","2.2.0":"2015-06-25T13:30:33.845Z","2.1.2":"2015-06-22T20:56:57.701Z","2.1.1":"2015-06-19T17:05:19.744Z","2.1.0":"2015-06-19T12:16:34.632Z","2.0.1":"2015-05-24T21:08:22.967Z","2.0.0":"2014-07-28T10:37:48.464Z","1.2.0":"2014-06-29T13:19:58.780Z","1.1.1":"2013-11-11T19:51:20.116Z","1.1.0":"2013-10-11T21:49:05.821Z","1.0.1":"2013-09-06T02:02:36.867Z","1.0.0":"2013-06-28T15:40:06.637Z","0.0.1":"2012-09-10T19:09:19.393Z"},"users":{"zyhack":true,"green_goo":true,"yabasha":true,"omgbbqhax":true,"ryanlatham":true,"hain":true,"leonardorb":true,"eklem":true,"hellstad":true,"naohta":true,"jehoshua02":true,"itonyyo":true,"dac2205":true,"incendiary":true,"shan":true,"lifecube":true,"sasquatch":true,"bpatel":true,"qqqppp9998":true,"markh":true,"kontrax":true,"battlemidget":true,"f124275809":true,"deepanchor":true,"walchko":true,"tobitobitobi":true,"nketchum":true,"aitorllj93":true,"mdpauley":true,"sappharx":true,"acollins-ts":true,"nicholaslp":true,"hckhanh":true,"vwal":true,"micaelsouza":true,"onheiron":true,"panlw":true,"nexdrew":true,"dpjayasekara":true,"puhuasheng":true,"dvdwlsh":true,"fpmweb":true,"antanst":true,"redmonkeydf":true,"kungkk":true,"calmwinds":true,"milfromoz":true,"alcovegan":true,"avalexandrov":true,"groovybytes":true,"crankincrankin":true,"joannerpena":true,"awzm":true,"ghost_gu":true,"codekraft-studio":true,"peruggia":true,"ahme-t":true,"rizvanhaider":true,"alex-cory":true,"codemarc":true,"dd-dxq":true,"peterheneback":true,"james3299":true,"gerst20051":true,"thassiov":true,"serkonyc":true,"mr_dingo":true,"almaclaine":true,"kidfiji":true,"hongbo-miao":true,"razr9":true,"logol":true,"surajs21":true,"okmogwai":true,"jshaw3":true,"hedge":true,"rochejul":true,"cwagner":true,"leodel":true,"tmurngon":true,"qddegtya":true,"eijs":true,"eserozvataf":true,"nohomey":true,"rocket0191":true,"ahvonenj":true,"mojaray2k":true,"kmiddlesworth":true,"a.sanchez":true,"robertpenner":true,"fleischer":true,"miroklarin":true,"dericdallaire":true,"cvalenzuela":true,"klombomb":true,"yonisetiawan":true,"alimaster":true,"luiko":true,"davidbwaters":true,"shadowlong":true,"shuoshubao":true,"codeinpixel":true,"malloryerik":true,"sherylynn":true,"dankle":true,"rshaw":true,"erk_war_han":true,"chentel":true,"kimhoe":true,"indraone01":true,"sebbie1o1":true,"sgodoshi":true,"abhilash503001":true,"alvis":true,"ungurys":true,"kakaman":true,"nicknaso":true,"odeardika":true,"chiaychang":true,"abt10":true,"usingthesystem":true,"rethinkflash":true,"shangsinian":true,"krun4l":true,"terminaltraces":true,"hbsnow":true,"robinblomberg":true,"raycharles":true,"akleandrov":true,"superchenney":true,"zand3rs":true,"edwardxyt":true,"alexreg90":true,"alexreg":true,"shiva127":true,"mupapa":true,"chenkan":true,"npmmurali":true,"juscilan":true,"leonweecs":true,"kkho595":true,"michellemichelleb":true,"hanhq":true,"victor0801x":true,"nraibaud":true,"cr8tiv":true,"alexeiramone":true,"ricklopez":true,"elitelegendary":true,"matsgm":true,"jmsherry":true,"d3ck":true,"feyyazay":true,"danday74":true,"antoineraulin":true,"diligens":true,"leix3041":true},"author":{"name":"JP Richardson","email":"jprichardson@gmail.com"},"repository":{"type":"git","url":"git+ssh://git@github.com/jprichardson/node-jsonfile.git"},"versions":{"6.2.0":{"name":"jsonfile","version":"6.2.0","description":"Easily read/write JSON files.","repository":{"type":"git","url":"git+ssh://git@github.com/jprichardson/node-jsonfile.git"},"keywords":["read","write","file","json","fs","fs-extra"],"author":{"name":"JP Richardson","email":"jprichardson@gmail.com"},"license":"MIT","dependencies":{"universalify":"^2.0.0"},"optionalDependencies":{"graceful-fs":"^4.1.6"},"devDependencies":{"mocha":"^8.2.0","rimraf":"^2.4.0","standard":"^16.0.1"},"main":"index.js","scripts":{"lint":"standard","test":"npm run lint && npm run unit","unit":"mocha"},"_id":"jsonfile@6.2.0","gitHead":"674dbeba851b24ad412c0d1fffbc172a6707f8da","bugs":{"url":"https://github.com/jprichardson/node-jsonfile/issues"},"homepage":"https://github.com/jprichardson/node-jsonfile#readme","_nodeVersion":"22.8.0","_npmVersion":"10.8.2","dist":{"shasum":"7c265bd1b65de6977478300087c99f1c84383f62","size":3452,"noattachment":false,"key":"/jsonfile/-/jsonfile-6.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/jsonfile/download/jsonfile-6.2.0.tgz"},"_npmUser":{"name":"ryanzim","email":"opensrc@ryanzim.com"},"directories":{},"maintainers":[{"name":"jprichardson","email":""},{"name":"ryanzim","email":"opensrc@ryanzim.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/jsonfile_6.2.0_1755012890758_0.7222816462312538"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-08-12T15:34:50.962Z","publish_time":1755012890962,"_source_registry_name":"default","_cnpm_publish_time":1755012890962},"6.1.0":{"name":"jsonfile","version":"6.1.0","description":"Easily read/write JSON files.","repository":{"type":"git","url":"git+ssh://git@github.com/jprichardson/node-jsonfile.git"},"keywords":["read","write","file","json","fs","fs-extra"],"author":{"name":"JP Richardson","email":"jprichardson@gmail.com"},"license":"MIT","dependencies":{"universalify":"^2.0.0","graceful-fs":"^4.1.6"},"optionalDependencies":{"graceful-fs":"^4.1.6"},"devDependencies":{"mocha":"^8.2.0","rimraf":"^2.4.0","standard":"^16.0.1"},"main":"index.js","scripts":{"lint":"standard","test":"npm run lint && npm run unit","unit":"mocha"},"gitHead":"9c6478a85899a9318547a6e9514b0403166d8c5c","bugs":{"url":"https://github.com/jprichardson/node-jsonfile/issues"},"homepage":"https://github.com/jprichardson/node-jsonfile#readme","_id":"jsonfile@6.1.0","_nodeVersion":"14.10.1","_npmVersion":"6.14.8","dist":{"shasum":"bc55b2634793c679ec6403094eb13698a6ec0aae","size":5816,"noattachment":false,"key":"/jsonfile/-/jsonfile-6.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/jsonfile/download/jsonfile-6.1.0.tgz"},"maintainers":[{"name":"jprichardson","email":""},{"name":"ryanzim","email":"opensrc@ryanzim.com"}],"_npmUser":{"name":"ryanzim","email":"opensrc@ryanzim.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jsonfile_6.1.0_1604163624326_0.7815609634364815"},"_hasShrinkwrap":false,"publish_time":1604163624450,"_cnpm_publish_time":1604163624450},"6.0.1":{"name":"jsonfile","version":"6.0.1","description":"Easily read/write JSON files.","repository":{"type":"git","url":"git+ssh://git@github.com/jprichardson/node-jsonfile.git"},"keywords":["read","write","file","json","fs","fs-extra"],"author":{"name":"JP Richardson","email":"jprichardson@gmail.com"},"license":"MIT","dependencies":{"universalify":"^1.0.0","graceful-fs":"^4.1.6"},"optionalDependencies":{"graceful-fs":"^4.1.6"},"devDependencies":{"mocha":"^5.2.0","rimraf":"^2.4.0","standard":"^12.0.1"},"main":"index.js","scripts":{"lint":"standard","test":"npm run lint && npm run unit","unit":"mocha"},"gitHead":"78937d20c95efd259574b7604a4efeb55d1a2b7a","bugs":{"url":"https://github.com/jprichardson/node-jsonfile/issues"},"homepage":"https://github.com/jprichardson/node-jsonfile#readme","_id":"jsonfile@6.0.1","_nodeVersion":"13.7.0","_npmVersion":"6.13.6","dist":{"shasum":"98966cba214378c8c84b82e085907b40bf614179","size":5672,"noattachment":false,"key":"/jsonfile/-/jsonfile-6.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/jsonfile/download/jsonfile-6.0.1.tgz"},"maintainers":[{"name":"jprichardson","email":""},{"name":"ryanzim","email":"opensrc@ryanzim.com"}],"_npmUser":{"name":"ryanzim","email":"opensrc@ryanzim.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jsonfile_6.0.1_1583593822667_0.38017978131454977"},"_hasShrinkwrap":false,"publish_time":1583593822836,"_cnpm_publish_time":1583593822836},"6.0.0":{"name":"jsonfile","version":"6.0.0","description":"Easily read/write JSON files.","repository":{"type":"git","url":"git+ssh://git@github.com/jprichardson/node-jsonfile.git"},"keywords":["read","write","file","json","fs","fs-extra"],"author":{"name":"JP Richardson","email":"jprichardson@gmail.com"},"license":"MIT","dependencies":{"universalify":"^0.2.0","graceful-fs":"^4.1.6"},"optionalDependencies":{"graceful-fs":"^4.1.6"},"devDependencies":{"mocha":"^5.2.0","rimraf":"^2.4.0","standard":"^12.0.1"},"main":"index.js","scripts":{"lint":"standard","test":"npm run lint && npm run unit","unit":"mocha"},"gitHead":"1639f64b9596294440dee7ec9366cc6e30b65334","bugs":{"url":"https://github.com/jprichardson/node-jsonfile/issues"},"homepage":"https://github.com/jprichardson/node-jsonfile#readme","_id":"jsonfile@6.0.0","_nodeVersion":"13.7.0","_npmVersion":"6.13.6","dist":{"shasum":"14c51dd6fceb667d3beeba1d164a23aad619bb51","size":5621,"noattachment":false,"key":"/jsonfile/-/jsonfile-6.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/jsonfile/download/jsonfile-6.0.0.tgz"},"maintainers":[{"name":"jprichardson","email":""},{"name":"ryanzim","email":"opensrc@ryanzim.com"}],"_npmUser":{"name":"ryanzim","email":"opensrc@ryanzim.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jsonfile_6.0.0_1582557309691_0.9814688137061665"},"_hasShrinkwrap":false,"publish_time":1582557309828,"_cnpm_publish_time":1582557309828},"5.0.0":{"name":"jsonfile","version":"5.0.0","description":"Easily read/write JSON files.","repository":{"type":"git","url":"git+ssh://git@github.com/jprichardson/node-jsonfile.git"},"keywords":["read","write","file","json","fs","fs-extra"],"author":{"name":"JP Richardson","email":"jprichardson@gmail.com"},"license":"MIT","dependencies":{"universalify":"^0.1.2","graceful-fs":"^4.1.6"},"optionalDependencies":{"graceful-fs":"^4.1.6"},"devDependencies":{"mocha":"^5.2.0","rimraf":"^2.4.0","standard":"^12.0.1"},"main":"index.js","scripts":{"lint":"standard","test":"npm run lint && npm run unit","unit":"mocha"},"gitHead":"5f647af41a77b8283927bb5872ab99dbf8e35dbc","bugs":{"url":"https://github.com/jprichardson/node-jsonfile/issues"},"homepage":"https://github.com/jprichardson/node-jsonfile#readme","_id":"jsonfile@5.0.0","_npmVersion":"6.1.0","_nodeVersion":"10.7.0","_npmUser":{"name":"ryanzim","email":"opensrc@ryanzim.com"},"dist":{"shasum":"e6b718f73da420d612823996fdf14a03f6ff6922","size":5519,"noattachment":false,"key":"/jsonfile/-/jsonfile-5.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/jsonfile/download/jsonfile-5.0.0.tgz"},"maintainers":[{"name":"jprichardson","email":""},{"name":"ryanzim","email":"opensrc@ryanzim.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jsonfile_5.0.0_1536426216111_0.27077949219066033"},"_hasShrinkwrap":false,"publish_time":1536426216222,"_cnpm_publish_time":1536426216222},"4.0.0":{"name":"jsonfile","version":"4.0.0","description":"Easily read/write JSON files.","repository":{"type":"git","url":"git+ssh://git@github.com/jprichardson/node-jsonfile.git"},"keywords":["read","write","file","json","fs","fs-extra"],"author":{"name":"JP Richardson","email":"jprichardson@gmail.com"},"license":"MIT","dependencies":{"graceful-fs":"^4.1.6"},"optionalDependencies":{"graceful-fs":"^4.1.6"},"devDependencies":{"mocha":"2.x","rimraf":"^2.4.0","standard":"^10.0.3"},"main":"index.js","files":["index.js"],"scripts":{"lint":"standard","test":"npm run lint && npm run unit","unit":"mocha"},"gitHead":"840bcc77f4e0bfcdf44c32895af42de97e80e3a8","bugs":{"url":"https://github.com/jprichardson/node-jsonfile/issues"},"homepage":"https://github.com/jprichardson/node-jsonfile#readme","_id":"jsonfile@4.0.0","_shasum":"8771aae0799b64076b76640fca058f9c10e33ecb","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.5.0","_npmUser":{"name":"ryanzim","email":"opensrc@ryanzim.com"},"dist":{"shasum":"8771aae0799b64076b76640fca058f9c10e33ecb","size":5266,"noattachment":false,"key":"/jsonfile/-/jsonfile-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/jsonfile/download/jsonfile-4.0.0.tgz"},"maintainers":[{"name":"jprichardson","email":""},{"name":"ryanzim","email":"opensrc@ryanzim.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jsonfile-4.0.0.tgz_1505244118025_0.7907822937704623"},"directories":{},"publish_time":1505244119050,"_hasShrinkwrap":false,"_cnpm_publish_time":1505244119050},"3.0.1":{"name":"jsonfile","version":"3.0.1","description":"Easily read/write JSON files.","repository":{"type":"git","url":"git+ssh://git@github.com/jprichardson/node-jsonfile.git"},"keywords":["read","write","file","json","fs","fs-extra"],"author":{"name":"JP Richardson","email":"jprichardson@gmail.com"},"license":"MIT","dependencies":{"graceful-fs":"^4.1.6"},"optionalDependencies":{"graceful-fs":"^4.1.6"},"devDependencies":{"mocha":"2.x","rimraf":"^2.4.0","standard":"^6.0.8"},"main":"index.js","scripts":{"lint":"standard","test":"npm run lint && npm run unit","unit":"mocha"},"gitHead":"51ec1e27d0426a107464cccab688e35ec64fc08d","bugs":{"url":"https://github.com/jprichardson/node-jsonfile/issues"},"homepage":"https://github.com/jprichardson/node-jsonfile#readme","_id":"jsonfile@3.0.1","_shasum":"a5ecc6f65f53f662c4415c7675a0331d0992ec66","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.8.0","_npmUser":{"name":"ryanzim","email":"opensrc@ryanzim.com"},"dist":{"shasum":"a5ecc6f65f53f662c4415c7675a0331d0992ec66","size":5388,"noattachment":false,"key":"/jsonfile/-/jsonfile-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/jsonfile/download/jsonfile-3.0.1.tgz"},"maintainers":[{"name":"jprichardson","email":""},{"name":"ryanzim","email":"opensrc@ryanzim.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jsonfile-3.0.1.tgz_1499266104031_0.6694869988132268"},"directories":{},"publish_time":1499266104991,"_hasShrinkwrap":false,"_cnpm_publish_time":1499266104991},"3.0.0":{"name":"jsonfile","version":"3.0.0","description":"Easily read/write JSON files.","repository":{"type":"git","url":"git+ssh://git@github.com/jprichardson/node-jsonfile.git"},"keywords":["read","write","file","json","fs","fs-extra"],"author":{"name":"JP Richardson","email":"jprichardson@gmail.com"},"license":"MIT","dependencies":{"graceful-fs":"^4.1.6"},"optionalDependencies":{"graceful-fs":"^4.1.6"},"devDependencies":{"mocha":"2.x","mock-fs":"^3.8.0","rimraf":"^2.4.0","standard":"^6.0.8"},"main":"index.js","scripts":{"lint":"standard","test":"npm run lint && npm run unit","unit":"mocha"},"gitHead":"171315331167a8f83598be2e9aa352cfffaf8123","bugs":{"url":"https://github.com/jprichardson/node-jsonfile/issues"},"homepage":"https://github.com/jprichardson/node-jsonfile#readme","_id":"jsonfile@3.0.0","_shasum":"92e7c7444e5ffd5fa32e6a9ae8b85034df8347d0","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.8.0","_npmUser":{"name":"ryanzim","email":"opensrc@ryanzim.com"},"dist":{"shasum":"92e7c7444e5ffd5fa32e6a9ae8b85034df8347d0","size":5277,"noattachment":false,"key":"/jsonfile/-/jsonfile-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/jsonfile/download/jsonfile-3.0.0.tgz"},"maintainers":[{"name":"jprichardson","email":""},{"name":"ryanzim","email":"opensrc@ryanzim.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/jsonfile-3.0.0.tgz_1493140755354_0.12630960741080344"},"directories":{},"publish_time":1493140757193,"_cnpm_publish_time":1493140757193,"_hasShrinkwrap":false},"2.4.0":{"name":"jsonfile","version":"2.4.0","description":"Easily read/write JSON files.","repository":{"type":"git","url":"git+ssh://git@github.com/jprichardson/node-jsonfile.git"},"keywords":["read","write","file","json","fs","fs-extra"],"author":{"name":"JP Richardson","email":"jprichardson@gmail.com"},"license":"MIT","dependencies":{"graceful-fs":"^4.1.6"},"optionalDependencies":{"graceful-fs":"^4.1.6"},"devDependencies":{"mocha":"2.x","mock-fs":"^3.8.0","rimraf":"^2.4.0","standard":"^6.0.8"},"main":"index.js","scripts":{"lint":"standard","test":"npm run lint && npm run unit","unit":"mocha"},"gitHead":"00b3983ac4aade79c64c7a8c2ced257078625c6d","bugs":{"url":"https://github.com/jprichardson/node-jsonfile/issues"},"homepage":"https://github.com/jprichardson/node-jsonfile#readme","_id":"jsonfile@2.4.0","_shasum":"3736a2b428b87bbda0cc83b53fa3d633a35c2ae8","_from":".","_npmVersion":"3.8.6","_nodeVersion":"6.1.0","_npmUser":{"name":"jprichardson","email":"jprichardson@gmail.com"},"maintainers":[{"name":"jprichardson","email":""},{"name":"ryanzim","email":"opensrc@ryanzim.com"}],"dist":{"shasum":"3736a2b428b87bbda0cc83b53fa3d633a35c2ae8","size":5427,"noattachment":false,"key":"/jsonfile/-/jsonfile-2.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/jsonfile/download/jsonfile-2.4.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/jsonfile-2.4.0.tgz_1473989978270_0.6271681792568415"},"directories":{},"publish_time":1473989979974,"_cnpm_publish_time":1473989979974,"_hasShrinkwrap":false},"2.3.1":{"name":"jsonfile","version":"2.3.1","description":"Easily read/write JSON files.","repository":{"type":"git","url":"git+ssh://git@github.com/jprichardson/node-jsonfile.git"},"keywords":["read","write","file","json","fs","fs-extra"],"author":{"name":"JP Richardson","email":"jprichardson@gmail.com"},"license":"MIT","dependencies":{},"devDependencies":{"mocha":"2.x","mock-fs":"^3.8.0","rimraf":"^2.4.0","standard":"^6.0.8"},"main":"index.js","scripts":{"lint":"standard","test":"npm run lint && npm run unit","unit":"mocha"},"gitHead":"bbaf134ae6599baf52eb853ec78ead1f9aec9fa6","bugs":{"url":"https://github.com/jprichardson/node-jsonfile/issues"},"homepage":"https://github.com/jprichardson/node-jsonfile#readme","_id":"jsonfile@2.3.1","_shasum":"28bcb29c596b5b7aafd34e662a329ba62cd842fc","_from":".","_npmVersion":"3.5.4","_nodeVersion":"5.3.0","_npmUser":{"name":"jprichardson","email":"jprichardson@gmail.com"},"dist":{"shasum":"28bcb29c596b5b7aafd34e662a329ba62cd842fc","size":5364,"noattachment":false,"key":"/jsonfile/-/jsonfile-2.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/jsonfile/download/jsonfile-2.3.1.tgz"},"maintainers":[{"name":"jprichardson","email":""},{"name":"ryanzim","email":"opensrc@ryanzim.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/jsonfile-2.3.1.tgz_1463146943042_0.31297345482744277"},"directories":{},"publish_time":1463146944916,"_cnpm_publish_time":1463146944916,"_hasShrinkwrap":false},"2.3.0":{"name":"jsonfile","version":"2.3.0","description":"Easily read/write JSON files.","repository":{"type":"git","url":"git+ssh://git@github.com/jprichardson/node-jsonfile.git"},"keywords":["read","write","file","json","fs","fs-extra"],"author":{"name":"JP Richardson","email":"jprichardson@gmail.com"},"license":"MIT","dependencies":{},"devDependencies":{"mocha":"2.x","mock-fs":"^3.8.0","rimraf":"^2.4.0","standard":"^6.0.8"},"main":"index.js","scripts":{"lint":"standard","test":"npm run lint && npm run unit","unit":"mocha"},"gitHead":"99e8d3280fcbcacaf93aa49738e0889ae5c2527f","bugs":{"url":"https://github.com/jprichardson/node-jsonfile/issues"},"homepage":"https://github.com/jprichardson/node-jsonfile#readme","_id":"jsonfile@2.3.0","_shasum":"ff9c20b67b9605c852e09f299859f48f130c19ec","_from":".","_npmVersion":"3.8.2","_nodeVersion":"5.3.0","_npmUser":{"name":"jprichardson","email":"jprichardson@gmail.com"},"maintainers":[{"name":"jprichardson","email":""},{"name":"ryanzim","email":"opensrc@ryanzim.com"}],"dist":{"shasum":"ff9c20b67b9605c852e09f299859f48f130c19ec","size":5178,"noattachment":false,"key":"/jsonfile/-/jsonfile-2.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/jsonfile/download/jsonfile-2.3.0.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/jsonfile-2.3.0.tgz_1460870694675_0.8002879491541535"},"directories":{},"publish_time":1460870695856,"_cnpm_publish_time":1460870695856,"_hasShrinkwrap":false},"2.2.3":{"name":"jsonfile","version":"2.2.3","description":"Easily read/write JSON files.","repository":{"type":"git","url":"git+ssh://git@github.com/jprichardson/node-jsonfile.git"},"keywords":["read","write","file","json","fs","fs-extra"],"author":{"name":"JP Richardson","email":"jprichardson@gmail.com"},"license":"MIT","dependencies":{},"devDependencies":{"mocha":"2.x","rimraf":"^2.4.0","standard":"4.x"},"main":"index.js","scripts":{"test":"standard && mocha"},"gitHead":"7688bc23d0800f8a98ca35f40a82950e54b4cad1","bugs":{"url":"https://github.com/jprichardson/node-jsonfile/issues"},"homepage":"https://github.com/jprichardson/node-jsonfile#readme","_id":"jsonfile@2.2.3","_shasum":"e252b99a6af901d3ec41f332589c90509a7bc605","_from":".","_npmVersion":"2.14.3","_nodeVersion":"4.1.0","_npmUser":{"name":"jprichardson","email":"jprichardson@gmail.com"},"maintainers":[{"name":"jprichardson","email":""},{"name":"ryanzim","email":"opensrc@ryanzim.com"}],"dist":{"shasum":"e252b99a6af901d3ec41f332589c90509a7bc605","size":3342,"noattachment":false,"key":"/jsonfile/-/jsonfile-2.2.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/jsonfile/download/jsonfile-2.2.3.tgz"},"directories":{},"publish_time":1444821804577,"_cnpm_publish_time":1444821804577,"_hasShrinkwrap":false},"2.2.2":{"name":"jsonfile","version":"2.2.2","description":"Easily read/write JSON files.","repository":{"type":"git","url":"git+ssh://git@github.com/jprichardson/node-jsonfile.git"},"keywords":["read","write","file","json","fs","fs-extra"],"author":{"name":"JP Richardson","email":"jprichardson@gmail.com"},"license":"MIT","dependencies":{},"devDependencies":{"mocha":"2.x","rimraf":"^2.4.0","standard":"4.x"},"main":"index.js","scripts":{"test":"standard && mocha"},"gitHead":"9b6d7089b33f95678b418656248c57b8d1989434","bugs":{"url":"https://github.com/jprichardson/node-jsonfile/issues"},"homepage":"https://github.com/jprichardson/node-jsonfile#readme","_id":"jsonfile@2.2.2","_shasum":"07f3861df42175c995aaa4fbd94f90aaa95531cd","_from":".","_npmVersion":"2.10.1","_nodeVersion":"2.1.0","_npmUser":{"name":"jprichardson","email":"jprichardson@gmail.com"},"maintainers":[{"name":"jprichardson","email":""},{"name":"ryanzim","email":"opensrc@ryanzim.com"}],"dist":{"shasum":"07f3861df42175c995aaa4fbd94f90aaa95531cd","size":3279,"noattachment":false,"key":"/jsonfile/-/jsonfile-2.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/jsonfile/download/jsonfile-2.2.2.tgz"},"directories":{},"publish_time":1442410196655,"_cnpm_publish_time":1442410196655,"_hasShrinkwrap":false},"2.2.1":{"name":"jsonfile","version":"2.2.1","description":"Easily read/write JSON files.","repository":{"type":"git","url":"git@github.com:jprichardson/node-jsonfile.git"},"keywords":["read","write","file","json","fs","fs-extra"],"author":{"name":"JP Richardson","email":"jprichardson@gmail.com"},"license":"MIT","dependencies":{},"devDependencies":{"mocha":"2.x","rimraf":"^2.4.0","standard":"4.x"},"main":"index.js","scripts":{"test":"standard && mocha test"},"gitHead":"0786584b75286e50aa12713b0852bd393b0f627e","bugs":{"url":"https://github.com/jprichardson/node-jsonfile/issues"},"homepage":"https://github.com/jprichardson/node-jsonfile","_id":"jsonfile@2.2.1","_shasum":"659e429e199fbb7d64b662df74301fbeeb0cc80a","_from":".","_npmVersion":"2.3.0","_nodeVersion":"0.10.32","_npmUser":{"name":"jprichardson","email":"jprichardson@gmail.com"},"maintainers":[{"name":"jprichardson","email":""},{"name":"ryanzim","email":"opensrc@ryanzim.com"}],"dist":{"shasum":"659e429e199fbb7d64b662df74301fbeeb0cc80a","size":4578,"noattachment":false,"key":"/jsonfile/-/jsonfile-2.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/jsonfile/download/jsonfile-2.2.1.tgz"},"directories":{},"publish_time":1435270353394,"_cnpm_publish_time":1435270353394,"_hasShrinkwrap":false},"2.2.0":{"name":"jsonfile","version":"2.2.0","description":"Easily read/write JSON files.","repository":{"type":"git","url":"git+ssh://git@github.com/jprichardson/node-jsonfile.git"},"keywords":["read","write","file","json","fs","fs-extra"],"author":{"name":"JP Richardson","email":"jprichardson@gmail.com"},"license":"MIT","dependencies":{},"devDependencies":{"mocha":"2.x","rimraf":"^2.4.0","standard":"4.x"},"main":"index.js","scripts":{"test":"standard && mocha test"},"gitHead":"f0dadcabf56db19351f072763b394ec097ccb087","bugs":{"url":"https://github.com/jprichardson/node-jsonfile/issues"},"homepage":"https://github.com/jprichardson/node-jsonfile#readme","_id":"jsonfile@2.2.0","_shasum":"677f73d8e93ffd670fe62e122f24cf6a1c967d97","_from":".","_npmVersion":"2.10.1","_nodeVersion":"2.1.0","_npmUser":{"name":"jprichardson","email":"jprichardson@gmail.com"},"maintainers":[{"name":"jprichardson","email":""},{"name":"ryanzim","email":"opensrc@ryanzim.com"}],"dist":{"shasum":"677f73d8e93ffd670fe62e122f24cf6a1c967d97","size":4505,"noattachment":false,"key":"/jsonfile/-/jsonfile-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/jsonfile/download/jsonfile-2.2.0.tgz"},"directories":{},"publish_time":1435239033845,"_cnpm_publish_time":1435239033845,"_hasShrinkwrap":false},"2.1.2":{"name":"jsonfile","version":"2.1.2","description":"Easily read/write JSON files.","repository":{"type":"git","url":"git+ssh://git@github.com/jprichardson/node-jsonfile.git"},"keywords":["read","write","file","json","fs","fs-extra"],"author":{"name":"JP Richardson","email":"jprichardson@gmail.com"},"license":"MIT","dependencies":{},"devDependencies":{"mocha":"2.x","rimraf":"^2.4.0","standard":"4.x"},"main":"index.js","scripts":{"test":"standard && mocha test"},"gitHead":"ecfc7aa82653e35ff1844ffdc211e112609f69f8","bugs":{"url":"https://github.com/jprichardson/node-jsonfile/issues"},"homepage":"https://github.com/jprichardson/node-jsonfile#readme","_id":"jsonfile@2.1.2","_shasum":"b0d7f9ac7a1766b93ccaec328371e1bd9f8fcdfc","_from":".","_npmVersion":"2.10.1","_nodeVersion":"2.1.0","_npmUser":{"name":"jprichardson","email":"jprichardson@gmail.com"},"maintainers":[{"name":"jprichardson","email":""},{"name":"ryanzim","email":"opensrc@ryanzim.com"}],"dist":{"shasum":"b0d7f9ac7a1766b93ccaec328371e1bd9f8fcdfc","size":4385,"noattachment":false,"key":"/jsonfile/-/jsonfile-2.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/jsonfile/download/jsonfile-2.1.2.tgz"},"directories":{},"publish_time":1435006617701,"_cnpm_publish_time":1435006617701,"_hasShrinkwrap":false},"2.1.1":{"name":"jsonfile","version":"2.1.1","description":"Easily read/write JSON files.","repository":{"type":"git","url":"git+ssh://git@github.com/jprichardson/node-jsonfile.git"},"keywords":["read","write","file","json","fs","fs-extra"],"author":{"name":"JP Richardson","email":"jprichardson@gmail.com"},"license":"MIT","dependencies":{},"devDependencies":{"mocha":"2.x","rimraf":"^2.4.0","standard":"4.x"},"main":"index.js","scripts":{"test":"standard && mocha test"},"gitHead":"b062182deb05e2efe3faa938fd1ab6524f34f615","bugs":{"url":"https://github.com/jprichardson/node-jsonfile/issues"},"homepage":"https://github.com/jprichardson/node-jsonfile#readme","_id":"jsonfile@2.1.1","_shasum":"ae2f84c547da212ea202ff196f3dddf68dc7cede","_from":".","_npmVersion":"2.10.1","_nodeVersion":"2.1.0","_npmUser":{"name":"jprichardson","email":"jprichardson@gmail.com"},"maintainers":[{"name":"jprichardson","email":""},{"name":"ryanzim","email":"opensrc@ryanzim.com"}],"dist":{"shasum":"ae2f84c547da212ea202ff196f3dddf68dc7cede","size":4320,"noattachment":false,"key":"/jsonfile/-/jsonfile-2.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/jsonfile/download/jsonfile-2.1.1.tgz"},"directories":{},"publish_time":1434733519744,"_cnpm_publish_time":1434733519744,"_hasShrinkwrap":false},"2.1.0":{"name":"jsonfile","version":"2.1.0","description":"Easily read/write JSON files.","repository":{"type":"git","url":"git+ssh://git@github.com/jprichardson/node-jsonfile.git"},"keywords":["read","write","file","json","fs","fs-extra"],"author":{"name":"JP Richardson","email":"jprichardson@gmail.com"},"license":"MIT","dependencies":{},"devDependencies":{"mocha":"2.x","rimraf":"^2.4.0","standard":"4.x"},"main":"index.js","scripts":{"test":"standard && mocha test"},"gitHead":"f2f267721c8180313815caa3052bf6e2e22c5eaf","bugs":{"url":"https://github.com/jprichardson/node-jsonfile/issues"},"homepage":"https://github.com/jprichardson/node-jsonfile#readme","_id":"jsonfile@2.1.0","_shasum":"6c161a9fb56cd58a72c8a4afe9fc1c5a25aec87a","_from":".","_npmVersion":"2.10.1","_nodeVersion":"2.1.0","_npmUser":{"name":"jprichardson","email":"jprichardson@gmail.com"},"maintainers":[{"name":"jprichardson","email":""},{"name":"ryanzim","email":"opensrc@ryanzim.com"}],"dist":{"shasum":"6c161a9fb56cd58a72c8a4afe9fc1c5a25aec87a","size":4194,"noattachment":false,"key":"/jsonfile/-/jsonfile-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/jsonfile/download/jsonfile-2.1.0.tgz"},"directories":{},"publish_time":1434716194632,"_cnpm_publish_time":1434716194632,"_hasShrinkwrap":false},"2.0.1":{"name":"jsonfile","version":"2.0.1","description":"Easily read/write JSON files.","repository":{"type":"git","url":"git@github.com:jprichardson/node-jsonfile.git"},"keywords":["read","write","file","json"],"author":{"name":"JP Richardson","email":"jprichardson@gmail.com"},"license":"MIT","dependencies":{},"devDependencies":{"testutil":"^0.7.0","mocha":"*","terst":"^0.2.0"},"main":"./lib/jsonfile.js","scripts":{"test":"mocha test"},"gitHead":"101690b5086a69addc05a1ddafd91e907f07464e","bugs":{"url":"https://github.com/jprichardson/node-jsonfile/issues"},"homepage":"https://github.com/jprichardson/node-jsonfile","_id":"jsonfile@2.0.1","_shasum":"4d78eb5d7986539e4c9fe52c0b55ffacacb85bd3","_from":".","_npmVersion":"2.3.0","_nodeVersion":"0.10.32","_npmUser":{"name":"jprichardson","email":"jprichardson@gmail.com"},"maintainers":[{"name":"jprichardson","email":""},{"name":"ryanzim","email":"opensrc@ryanzim.com"}],"dist":{"shasum":"4d78eb5d7986539e4c9fe52c0b55ffacacb85bd3","size":2785,"noattachment":false,"key":"/jsonfile/-/jsonfile-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/jsonfile/download/jsonfile-2.0.1.tgz"},"directories":{},"publish_time":1432501702967,"_cnpm_publish_time":1432501702967,"_hasShrinkwrap":false},"2.0.0":{"name":"jsonfile","version":"2.0.0","description":"Easily read/write JSON files.","repository":{"type":"git","url":"git@github.com:jprichardson/node-jsonfile.git"},"keywords":["read","write","file","json"],"author":{"name":"JP Richardson","email":"jprichardson@gmail.com"},"licenses":[{"type":"MIT","url":""}],"dependencies":{},"devDependencies":{"testutil":"^0.7.0","mocha":"*","terst":"^0.2.0"},"main":"./lib/jsonfile.js","scripts":{"test":"mocha test"},"bugs":{"url":"https://github.com/jprichardson/node-jsonfile/issues"},"homepage":"https://github.com/jprichardson/node-jsonfile","_id":"jsonfile@2.0.0","dist":{"shasum":"c3944f350bd3c078b392e0aa1633b44662fcf06b","size":2793,"noattachment":false,"key":"/jsonfile/-/jsonfile-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/jsonfile/download/jsonfile-2.0.0.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"jp","email":"jprichardson@gmail.com"},"maintainers":[{"name":"jprichardson","email":""},{"name":"ryanzim","email":"opensrc@ryanzim.com"}],"directories":{},"publish_time":1406543868464,"_cnpm_publish_time":1406543868464,"_hasShrinkwrap":false},"1.2.0":{"name":"jsonfile","version":"1.2.0","description":"Easily read/write JSON files.","repository":{"type":"git","url":"git@github.com:jprichardson/node-jsonfile.git"},"keywords":["read","write","file","json"],"author":{"name":"JP Richardson","email":"jprichardson@gmail.com"},"licenses":[{"type":"MIT","url":""}],"dependencies":{},"devDependencies":{"testutil":"~0.5.1","mocha":"*"},"main":"./lib/jsonfile.js","scripts":{"test":"mocha test"},"bugs":{"url":"https://github.com/jprichardson/node-jsonfile/issues"},"homepage":"https://github.com/jprichardson/node-jsonfile","_id":"jsonfile@1.2.0","dist":{"shasum":"5f35d6cd9f946ec97b5b18353fa9e58df1b86f6a","size":2526,"noattachment":false,"key":"/jsonfile/-/jsonfile-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/jsonfile/download/jsonfile-1.2.0.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"jp","email":"jprichardson@gmail.com"},"maintainers":[{"name":"jprichardson","email":""},{"name":"ryanzim","email":"opensrc@ryanzim.com"}],"directories":{},"publish_time":1404047998780,"_cnpm_publish_time":1404047998780,"_hasShrinkwrap":false},"1.1.1":{"name":"jsonfile","version":"1.1.1","description":"Easily read/write JSON files.","repository":{"type":"git","url":"git@github.com:jprichardson/node-jsonfile.git"},"keywords":["read","write","file","json"],"author":{"name":"JP Richardson","email":"jprichardson@gmail.com"},"licenses":[{"type":"MIT","url":""}],"dependencies":{},"devDependencies":{"testutil":"~0.5.1","mocha":"*"},"main":"./lib/jsonfile.js","scripts":{"test":"mocha test"},"readmeFilename":"README.md","_id":"jsonfile@1.1.1","dist":{"shasum":"da4fd6ad77f1a255203ea63c7bc32dc31ef64433","size":2445,"noattachment":false,"key":"/jsonfile/-/jsonfile-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/jsonfile/download/jsonfile-1.1.1.tgz"},"_from":".","_npmVersion":"1.2.17","_npmUser":{"name":"jp","email":"jprichardson@gmail.com"},"maintainers":[{"name":"jprichardson","email":""},{"name":"ryanzim","email":"opensrc@ryanzim.com"}],"directories":{},"publish_time":1384199480116,"_hasShrinkwrap":false,"_cnpm_publish_time":1384199480116},"1.1.0":{"name":"jsonfile","version":"1.1.0","description":"Easily read/write JSON files.","repository":{"type":"git","url":"git@github.com:jprichardson/node-jsonfile.git"},"keywords":[],"author":{"name":"JP Richardson","email":"jprichardson@gmail.com"},"licenses":[{"type":"MIT","url":""}],"dependencies":{},"devDependencies":{"testutil":"~0.5.1","mocha":"*"},"main":"./lib/jsonfile.js","scripts":{"test":"mocha test"},"readmeFilename":"README.md","bugs":{"url":"https://github.com/jprichardson/node-jsonfile/issues"},"_id":"jsonfile@1.1.0","dist":{"shasum":"8b72486f9e6bf3fd1bb809762532fcabef4b7640","size":2368,"noattachment":false,"key":"/jsonfile/-/jsonfile-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/jsonfile/download/jsonfile-1.1.0.tgz"},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"jp","email":"jprichardson@gmail.com"},"maintainers":[{"name":"jprichardson","email":""},{"name":"ryanzim","email":"opensrc@ryanzim.com"}],"directories":{},"publish_time":1381528145821,"_hasShrinkwrap":false,"_cnpm_publish_time":1381528145821},"1.0.1":{"name":"jsonfile","version":"1.0.1","description":"Easily read/write JSON files.","repository":{"type":"git","url":"git@github.com:jprichardson/node-jsonfile.git"},"keywords":[],"author":{"name":"JP Richardson","email":"jprichardson@gmail.com"},"licenses":[{"type":"MIT","url":""}],"dependencies":{},"devDependencies":{"testutil":"~0.5.1","mocha":"*"},"main":"./lib/jsonfile.js","scripts":{"test":"mocha test"},"readmeFilename":"README.md","bugs":{"url":"https://github.com/jprichardson/node-jsonfile/issues"},"_id":"jsonfile@1.0.1","dist":{"shasum":"ea5efe40b83690b98667614a7392fc60e842c0dd","size":2168,"noattachment":false,"key":"/jsonfile/-/jsonfile-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/jsonfile/download/jsonfile-1.0.1.tgz"},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"jp","email":"jprichardson@gmail.com"},"maintainers":[{"name":"jprichardson","email":""},{"name":"ryanzim","email":"opensrc@ryanzim.com"}],"directories":{},"publish_time":1378432956867,"_hasShrinkwrap":false,"_cnpm_publish_time":1378432956867},"1.0.0":{"name":"jsonfile","version":"1.0.0","description":"Easily read/write JSON files.","homepage":[""],"repository":{"type":"git","url":"git@github.com:jprichardson/node-jsonfile.git"},"keywords":[],"author":{"name":"JP Richardson","email":"jprichardson@gmail.com"},"licenses":[{"type":"MIT","url":""}],"dependencies":{},"devDependencies":{"testutil":"~0.5.1","mocha":"*"},"main":"./lib/jsonfile.js","scripts":{"test":"mocha test"},"readmeFilename":"README.md","_id":"jsonfile@1.0.0","dist":{"shasum":"51931adf3cddd2073ab6f5f5517ca4780f22dfa7","size":2138,"noattachment":false,"key":"/jsonfile/-/jsonfile-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/jsonfile/download/jsonfile-1.0.0.tgz"},"_from":".","_npmVersion":"1.2.17","_npmUser":{"name":"jp","email":"jprichardson@gmail.com"},"maintainers":[{"name":"jprichardson","email":""},{"name":"ryanzim","email":"opensrc@ryanzim.com"}],"directories":{},"publish_time":1372434006637,"_hasShrinkwrap":false,"_cnpm_publish_time":1372434006637},"0.0.1":{"name":"jsonfile","version":"0.0.1","description":"Easily read/write JSON files.","homepage":[""],"repository":{"type":"git","url":"git@github.com:jprichardson/node-jsonfile.git"},"keywords":[],"author":{"name":"JP Richardson","email":"jprichardson@gmail.com"},"licenses":[{"type":"MIT","url":""}],"dependencies":{},"devDependencies":{"mkdirp":"~0.3.4","testutil":"~0.2.2","mocha":"~1.4.2"},"main":"./lib/jsonfile.js","scripts":{"test":"mocha test"},"_id":"jsonfile@0.0.1","dist":{"shasum":"b5f9f515121b2844f2cbfe14338b55c79800e1d8","size":2746,"noattachment":false,"key":"/jsonfile/-/jsonfile-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/jsonfile/download/jsonfile-0.0.1.tgz"},"maintainers":[{"name":"jprichardson","email":""},{"name":"ryanzim","email":"opensrc@ryanzim.com"}],"directories":{},"publish_time":1347304159393,"_hasShrinkwrap":false,"_cnpm_publish_time":1347304159393}},"readme":"Node.js - jsonfile\n================\n\nEasily read/write JSON files in Node.js. _Note: this module cannot be used in the browser._\n\n[![npm Package](https://img.shields.io/npm/v/jsonfile.svg?style=flat-square)](https://www.npmjs.org/package/jsonfile)\n[![linux build status](https://img.shields.io/github/actions/workflow/status/jprichardson/node-jsonfile/ci.yml?branch=master)](https://github.com/jprichardson/node-jsonfile/actions?query=branch%3Amaster)\n[![windows Build status](https://img.shields.io/appveyor/ci/jprichardson/node-jsonfile/master.svg?label=windows%20build)](https://ci.appveyor.com/project/jprichardson/node-jsonfile/branch/master)\n\n<a href=\"https://github.com/feross/standard\"><img src=\"https://cdn.rawgit.com/feross/standard/master/sticker.svg\" alt=\"Standard JavaScript\" width=\"100\"></a>\n\nWhy?\n----\n\nWriting `JSON.stringify()` and then `fs.writeFile()` and `JSON.parse()` with `fs.readFile()` enclosed in `try/catch` blocks became annoying.\n\n\n\nInstallation\n------------\n\n    npm install --save jsonfile\n\n\n\nAPI\n---\n\n* [`readFile(filename, [options], callback)`](#readfilefilename-options-callback)\n* [`readFileSync(filename, [options])`](#readfilesyncfilename-options)\n* [`writeFile(filename, obj, [options], callback)`](#writefilefilename-obj-options-callback)\n* [`writeFileSync(filename, obj, [options])`](#writefilesyncfilename-obj-options)\n\n----\n\n### readFile(filename, [options], callback)\n\n`options` (`object`, default `undefined`): Pass in any [`fs.readFile`](https://nodejs.org/api/fs.html#fs_fs_readfile_path_options_callback) options or set `reviver` for a [JSON reviver](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse).\n  - `throws` (`boolean`, default: `true`). If `JSON.parse` throws an error, pass this error to the callback.\n  If `false`, returns `null` for the object.\n\n\n```js\nconst jsonfile = require('jsonfile')\nconst file = '/tmp/data.json'\njsonfile.readFile(file, function (err, obj) {\n  if (err) console.error(err)\n  console.dir(obj)\n})\n```\n\nYou can also use this method with promises. The `readFile` method will return a promise if you do not pass a callback function.\n\n```js\nconst jsonfile = require('jsonfile')\nconst file = '/tmp/data.json'\njsonfile.readFile(file)\n  .then(obj => console.dir(obj))\n  .catch(error => console.error(error))\n```\n\n----\n\n### readFileSync(filename, [options])\n\n`options` (`object`, default `undefined`): Pass in any [`fs.readFileSync`](https://nodejs.org/api/fs.html#fs_fs_readfilesync_path_options) options or set `reviver` for a [JSON reviver](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse).\n- `throws` (`boolean`, default: `true`). If an error is encountered reading or parsing the file, throw the error. If `false`, returns `null` for the object.\n\n```js\nconst jsonfile = require('jsonfile')\nconst file = '/tmp/data.json'\n\nconsole.dir(jsonfile.readFileSync(file))\n```\n\n----\n\n### writeFile(filename, obj, [options], callback)\n\n`options`: Pass in any [`fs.writeFile`](https://nodejs.org/api/fs.html#fs_fs_writefile_file_data_options_callback) options or set `replacer` for a [JSON replacer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify). Can also pass in `spaces`, or override `EOL` string or set `finalEOL` flag as `false` to not save the file with `EOL` at the end.\n\n\n```js\nconst jsonfile = require('jsonfile')\n\nconst file = '/tmp/data.json'\nconst obj = { name: 'JP' }\n\njsonfile.writeFile(file, obj, function (err) {\n  if (err) console.error(err)\n})\n```\nOr use with promises as follows:\n\n```js\nconst jsonfile = require('jsonfile')\n\nconst file = '/tmp/data.json'\nconst obj = { name: 'JP' }\n\njsonfile.writeFile(file, obj)\n  .then(res => {\n    console.log('Write complete')\n  })\n  .catch(error => console.error(error))\n```\n\n\n**formatting with spaces:**\n\n```js\nconst jsonfile = require('jsonfile')\n\nconst file = '/tmp/data.json'\nconst obj = { name: 'JP' }\n\njsonfile.writeFile(file, obj, { spaces: 2 }, function (err) {\n  if (err) console.error(err)\n})\n```\n\n**overriding EOL:**\n\n```js\nconst jsonfile = require('jsonfile')\n\nconst file = '/tmp/data.json'\nconst obj = { name: 'JP' }\n\njsonfile.writeFile(file, obj, { spaces: 2, EOL: '\\r\\n' }, function (err) {\n  if (err) console.error(err)\n})\n```\n\n\n**disabling the EOL at the end of file:**\n\n```js\nconst jsonfile = require('jsonfile')\n\nconst file = '/tmp/data.json'\nconst obj = { name: 'JP' }\n\njsonfile.writeFile(file, obj, { spaces: 2, finalEOL: false }, function (err) {\n  if (err) console.log(err)\n})\n```\n\n**appending to an existing JSON file:**\n\nYou can use `fs.writeFile` option `{ flag: 'a' }` to achieve this.\n\n```js\nconst jsonfile = require('jsonfile')\n\nconst file = '/tmp/mayAlreadyExistedData.json'\nconst obj = { name: 'JP' }\n\njsonfile.writeFile(file, obj, { flag: 'a' }, function (err) {\n  if (err) console.error(err)\n})\n```\n\n----\n\n### writeFileSync(filename, obj, [options])\n\n`options`: Pass in any [`fs.writeFileSync`](https://nodejs.org/api/fs.html#fs_fs_writefilesync_file_data_options) options or set `replacer` for a [JSON replacer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify). Can also pass in `spaces`, or override `EOL` string or set `finalEOL` flag as `false` to not save the file with `EOL` at the end.\n\n```js\nconst jsonfile = require('jsonfile')\n\nconst file = '/tmp/data.json'\nconst obj = { name: 'JP' }\n\njsonfile.writeFileSync(file, obj)\n```\n\n**formatting with spaces:**\n\n```js\nconst jsonfile = require('jsonfile')\n\nconst file = '/tmp/data.json'\nconst obj = { name: 'JP' }\n\njsonfile.writeFileSync(file, obj, { spaces: 2 })\n```\n\n**overriding EOL:**\n\n```js\nconst jsonfile = require('jsonfile')\n\nconst file = '/tmp/data.json'\nconst obj = { name: 'JP' }\n\njsonfile.writeFileSync(file, obj, { spaces: 2, EOL: '\\r\\n' })\n```\n\n**disabling the EOL at the end of file:**\n\n```js\nconst jsonfile = require('jsonfile')\n\nconst file = '/tmp/data.json'\nconst obj = { name: 'JP' }\n\njsonfile.writeFileSync(file, obj, { spaces: 2, finalEOL: false })\n```\n\n**appending to an existing JSON file:**\n\nYou can use `fs.writeFileSync` option `{ flag: 'a' }` to achieve this.\n\n```js\nconst jsonfile = require('jsonfile')\n\nconst file = '/tmp/mayAlreadyExistedData.json'\nconst obj = { name: 'JP' }\n\njsonfile.writeFileSync(file, obj, { flag: 'a' })\n```\n\nLicense\n-------\n\n(MIT License)\n\nCopyright 2012-2016, JP Richardson  <jprichardson@gmail.com>\n","_attachments":{},"homepage":"https://github.com/jprichardson/node-jsonfile#readme","bugs":{"url":"https://github.com/jprichardson/node-jsonfile/issues"},"license":"MIT"}