{"_id":"write-json-file","_rev":"4613203","name":"write-json-file","description":"Stringify and write JSON to a file atomically","dist-tags":{"latest":"7.0.0"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2026-04-10T18:09:36.000Z","created":"2015-09-02T06:34:15.268Z","7.0.0":"2025-09-14T22:37:50.260Z","6.0.0":"2024-07-26T11:25:35.937Z","5.0.0":"2021-08-14T23:32:46.570Z","4.3.0":"2020-02-07T08:54:49.528Z","4.2.1":"2019-11-16T16:22:45.087Z","4.2.0":"2019-07-30T18:22:47.809Z","4.1.1":"2019-07-01T05:41:34.605Z","4.1.0":"2019-05-25T05:29:44.054Z","4.0.0":"2019-05-21T08:33:45.412Z","3.2.0":"2019-04-06T16:02:07.889Z","3.1.0":"2019-02-12T09:59:05.200Z","3.0.2":"2018-09-12T09:40:57.169Z","3.0.1":"2018-09-03T05:28:08.026Z","3.0.0":"2018-08-27T07:36:08.444Z","2.3.0":"2017-10-11T12:41:54.241Z","2.2.0":"2017-05-27T13:44:19.599Z","2.1.0":"2017-05-12T06:57:46.132Z","2.0.0":"2016-04-30T17:25:49.591Z","1.2.0":"2015-11-14T19:48:20.213Z","1.1.1":"2015-09-04T07:54:26.809Z","1.1.0":"2015-09-02T08:30:19.965Z","1.0.0":"2015-09-02T06:34:15.268Z"},"users":{"whoaa":true,"danielbayley":true,"anoubis":true,"rawphp":true,"andrewtlove":true,"rocket0191":true,"rshaw":true,"stoneren":true,"rfortune":true,"level9i":true,"kiinlam":true,"arcticicestudio":true},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/write-json-file.git"},"versions":{"7.0.0":{"name":"write-json-file","version":"7.0.0","description":"Stringify and write JSON to a file atomically","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/write-json-file.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=20"},"scripts":{"test":"xo && node test.js && tsd"},"keywords":["write","json","stringify","file","fs","graceful","stable","sort","newline","indent","atomic","atomically"],"dependencies":{"detect-indent":"^7.0.1","is-plain-obj":"^4.1.0","sort-keys":"^6.0.0","write-file-atomic":"^6.0.0"},"devDependencies":{"tsd":"^0.33.0","xo":"^1.2.2"},"_id":"write-json-file@7.0.0","gitHead":"0df5573675c87b98e83540e88e84090c322d09f3","types":"./index.d.ts","bugs":{"url":"https://github.com/sindresorhus/write-json-file/issues"},"homepage":"https://github.com/sindresorhus/write-json-file#readme","_nodeVersion":"20.19.1","_npmVersion":"10.9.2","dist":{"shasum":"c05e06eda43715c99008f22f8c4b6d18bda948ef","size":2886,"noattachment":false,"key":"/write-json-file/-/write-json-file-7.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/write-json-file/download/write-json-file-7.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/write-json-file_7.0.0_1757889470097_0.5849780299859981"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-09-14T22:37:50.260Z","publish_time":1757889470260,"_source_registry_name":"default","_cnpm_publish_time":1757889470260},"6.0.0":{"name":"write-json-file","version":"6.0.0","description":"Stringify and write JSON to a file atomically","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/write-json-file.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=18"},"scripts":{"test":"xo && ava && tsd"},"keywords":["write","json","stringify","file","fs","graceful","stable","sort","newline","indent","atomic","atomically"],"dependencies":{"detect-indent":"^7.0.1","is-plain-obj":"^4.1.0","sort-keys":"^5.0.0","write-file-atomic":"^5.0.1"},"devDependencies":{"ava":"^6.1.3","tempy":"^2.0.0","tsd":"^0.31.1","xo":"^0.59.2"},"_id":"write-json-file@6.0.0","gitHead":"301b0780592893953a6b6566e3ec92bca342def1","types":"./index.d.ts","bugs":{"url":"https://github.com/sindresorhus/write-json-file/issues"},"homepage":"https://github.com/sindresorhus/write-json-file#readme","_nodeVersion":"18.20.2","_npmVersion":"10.6.0","dist":{"shasum":"52f5d8178c5beb543ed14a2a24195b696b27e7cb","size":2904,"noattachment":false,"key":"/write-json-file/-/write-json-file-6.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/write-json-file/download/write-json-file-6.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/write-json-file_6.0.0_1721993135781_0.11900128404336607"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-07-26T11:25:35.937Z","publish_time":1721993135937,"_source_registry_name":"default","_cnpm_publish_time":1721993135937},"5.0.0":{"name":"write-json-file","version":"5.0.0","description":"Stringify and write JSON to a file atomically","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/write-json-file.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"scripts":{"test":"xo && ava && tsd"},"keywords":["write","json","stringify","file","fs","graceful","stable","sort","newline","indent","atomic","atomically"],"dependencies":{"detect-indent":"^7.0.0","is-plain-obj":"^4.0.0","sort-keys":"^5.0.0","write-file-atomic":"^3.0.3"},"devDependencies":{"ava":"^3.15.0","tempy":"^1.0.1","tsd":"^0.17.0","xo":"^0.44.0"},"gitHead":"74f2a92ab392d9ccc28edb52ebee1e8ac1709135","bugs":{"url":"https://github.com/sindresorhus/write-json-file/issues"},"homepage":"https://github.com/sindresorhus/write-json-file#readme","_id":"write-json-file@5.0.0","_nodeVersion":"12.22.1","_npmVersion":"7.10.0","dist":{"shasum":"11c329a8ea9e8e23fb92a87cc27412a15f87708b","size":3087,"noattachment":false,"key":"/write-json-file/-/write-json-file-5.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/write-json-file/download/write-json-file-5.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/write-json-file_5.0.0_1628983966450_0.776985720800204"},"_hasShrinkwrap":false,"publish_time":1628983966570,"_cnpm_publish_time":1628983966570},"4.3.0":{"name":"write-json-file","version":"4.3.0","description":"Stringify and write JSON to a file atomically","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/write-json-file.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8.3"},"scripts":{"test":"xo && ava && tsd"},"keywords":["write","json","stringify","file","fs","graceful","stable","sort","newline","indent","atomic","atomically"],"dependencies":{"detect-indent":"^6.0.0","graceful-fs":"^4.1.15","is-plain-obj":"^2.0.0","make-dir":"^3.0.0","sort-keys":"^4.0.0","write-file-atomic":"^3.0.0"},"devDependencies":{"ava":"^1.4.1","tempy":"^0.3.0","tsd":"^0.8.0","xo":"^0.25.3"},"gitHead":"f5368def23b3b3668fc7ea1b5b4571f41d6cd886","bugs":{"url":"https://github.com/sindresorhus/write-json-file/issues"},"homepage":"https://github.com/sindresorhus/write-json-file#readme","_id":"write-json-file@4.3.0","_nodeVersion":"10.18.1","_npmVersion":"6.13.7","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"908493d6fd23225344af324016e4ca8f702dd12d","size":3188,"noattachment":false,"key":"/write-json-file/-/write-json-file-4.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/write-json-file/download/write-json-file-4.3.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/write-json-file_4.3.0_1581065689358_0.9744439218400434"},"_hasShrinkwrap":false,"publish_time":1581065689528,"_cnpm_publish_time":1581065689528},"4.2.1":{"name":"write-json-file","version":"4.2.1","description":"Stringify and write JSON to a file atomically","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/write-json-file.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8.3"},"scripts":{"test":"xo && ava && tsd"},"keywords":["write","json","stringify","file","fs","graceful","stable","sort","newline","indent","atomic","atomically"],"dependencies":{"detect-indent":"^6.0.0","graceful-fs":"^4.1.15","is-plain-obj":"^2.0.0","make-dir":"^3.0.0","sort-keys":"^3.0.0","write-file-atomic":"^3.0.0"},"devDependencies":{"ava":"^1.4.1","tempy":"^0.3.0","tsd":"^0.7.3","xo":"^0.24.0"},"gitHead":"ff4e4b4d994992feeca5cbbc55692216a6654560","bugs":{"url":"https://github.com/sindresorhus/write-json-file/issues"},"homepage":"https://github.com/sindresorhus/write-json-file#readme","_id":"write-json-file@4.2.1","_nodeVersion":"10.17.0","_npmVersion":"6.11.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"ddd5ef9d9bae6f8129629410caaa9c79556b8541","size":3179,"noattachment":false,"key":"/write-json-file/-/write-json-file-4.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/write-json-file/download/write-json-file-4.2.1.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/write-json-file_4.2.1_1573921364949_0.5567712625334045"},"_hasShrinkwrap":false,"publish_time":1573921365087,"_cnpm_publish_time":1573921365087},"4.2.0":{"name":"write-json-file","version":"4.2.0","description":"Stringify and write JSON to a file atomically","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/write-json-file.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["write","json","stringify","file","fs","graceful","stable","sort","newline","indent","atomic","atomically"],"dependencies":{"detect-indent":"^6.0.0","graceful-fs":"^4.1.15","is-plain-obj":"^2.0.0","make-dir":"^3.0.0","sort-keys":"^3.0.0","write-file-atomic":"^3.0.0"},"devDependencies":{"ava":"^1.4.1","tempy":"^0.3.0","tsd":"^0.7.3","xo":"^0.24.0"},"gitHead":"909f83531b2691fc1e2cc0b1b3ccd53ef449d973","bugs":{"url":"https://github.com/sindresorhus/write-json-file/issues"},"homepage":"https://github.com/sindresorhus/write-json-file#readme","_id":"write-json-file@4.2.0","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"85a853ef1c28feb206bd56c2903fe19a6803c7ac","size":2947,"noattachment":false,"key":"/write-json-file/-/write-json-file-4.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/write-json-file/download/write-json-file-4.2.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/write-json-file_4.2.0_1564510967711_0.31841075436550814"},"_hasShrinkwrap":false,"publish_time":1564510967809,"_cnpm_publish_time":1564510967809},"4.1.1":{"name":"write-json-file","version":"4.1.1","description":"Stringify and write JSON to a file atomically","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/write-json-file.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["write","json","stringify","file","fs","graceful","stable","sort","newline","indent","atomic","atomically"],"dependencies":{"detect-indent":"^6.0.0","graceful-fs":"^4.1.15","is-plain-obj":"^2.0.0","make-dir":"^3.0.0","sort-keys":"^3.0.0","write-file-atomic":"^3.0.0"},"devDependencies":{"ava":"^1.4.1","tempy":"^0.3.0","tsd":"^0.7.3","xo":"^0.24.0"},"gitHead":"5b66b0eb5f5ddba9b44d6f6f66c4b7b90950efea","bugs":{"url":"https://github.com/sindresorhus/write-json-file/issues"},"homepage":"https://github.com/sindresorhus/write-json-file#readme","_id":"write-json-file@4.1.1","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"d527936d9f32696ac5a0448c6d424db3724036c4","size":2885,"noattachment":false,"key":"/write-json-file/-/write-json-file-4.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/write-json-file/download/write-json-file-4.1.1.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/write-json-file_4.1.1_1561959694437_0.6597226320607832"},"_hasShrinkwrap":false,"publish_time":1561959694605,"_cnpm_publish_time":1561959694605},"4.1.0":{"name":"write-json-file","version":"4.1.0","description":"Stringify and write JSON to a file atomically","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/write-json-file.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["write","json","stringify","file","fs","graceful","stable","sort","newline","indent","atomic","atomically"],"dependencies":{"detect-indent":"^6.0.0","graceful-fs":"^4.1.15","make-dir":"^3.0.0","sort-keys":"^3.0.0","write-file-atomic":"^3.0.0"},"devDependencies":{"ava":"^1.4.1","tempy":"^0.3.0","tsd":"^0.7.3","xo":"^0.24.0"},"gitHead":"34a5a177a67c9ed539689ad85c8d8890819dc4fb","bugs":{"url":"https://github.com/sindresorhus/write-json-file/issues"},"homepage":"https://github.com/sindresorhus/write-json-file#readme","_id":"write-json-file@4.1.0","_nodeVersion":"8.16.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"2271477275eb9a0fe89e87bcfe5c72a0d87c3efa","size":2848,"noattachment":false,"key":"/write-json-file/-/write-json-file-4.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/write-json-file/download/write-json-file-4.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/write-json-file_4.1.0_1558762183845_0.2942794972433571"},"_hasShrinkwrap":false,"publish_time":1558762184054,"_cnpm_publish_time":1558762184054},"4.0.0":{"name":"write-json-file","version":"4.0.0","description":"Stringify and write JSON to a file atomically","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/write-json-file.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["write","json","stringify","file","fs","graceful","stable","sort","newline","indent","atomic","atomically"],"dependencies":{"detect-indent":"^6.0.0","graceful-fs":"^4.1.15","make-dir":"^3.0.0","sort-keys":"^3.0.0","write-file-atomic":"^2.4.2"},"devDependencies":{"ava":"^1.4.1","tempy":"^0.3.0","tsd":"^0.7.3","xo":"^0.24.0"},"gitHead":"79f7061a70da64d2fc38b2e9bd56eaea126c7413","bugs":{"url":"https://github.com/sindresorhus/write-json-file/issues"},"homepage":"https://github.com/sindresorhus/write-json-file#readme","_id":"write-json-file@4.0.0","_nodeVersion":"8.16.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"a04889c36fde42ac4100f05dfd9793d09c97d6c5","size":2863,"noattachment":false,"key":"/write-json-file/-/write-json-file-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/write-json-file/download/write-json-file-4.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/write-json-file_4.0.0_1558427625329_0.3037884876251329"},"_hasShrinkwrap":false,"publish_time":1558427625412,"_cnpm_publish_time":1558427625412},"3.2.0":{"name":"write-json-file","version":"3.2.0","description":"Stringify and write JSON to a file atomically","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/write-json-file.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava && tsd"},"keywords":["write","json","stringify","file","fs","graceful","stable","sort","newline","indent","atomic","atomically"],"dependencies":{"detect-indent":"^5.0.0","graceful-fs":"^4.1.15","make-dir":"^2.1.0","pify":"^4.0.1","sort-keys":"^2.0.0","write-file-atomic":"^2.4.2"},"devDependencies":{"ava":"^1.4.1","tempfile":"^2.0.0","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"6b5ca11b1f4f3996b5e9ce290c445c8c4a2f50db","bugs":{"url":"https://github.com/sindresorhus/write-json-file/issues"},"homepage":"https://github.com/sindresorhus/write-json-file#readme","_id":"write-json-file@3.2.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"65bbdc9ecd8a1458e15952770ccbadfcff5fe62a","size":3035,"noattachment":false,"key":"/write-json-file/-/write-json-file-3.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/write-json-file/download/write-json-file-3.2.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/write-json-file_3.2.0_1554566527667_0.3441063625854759"},"_hasShrinkwrap":false,"publish_time":1554566527889,"_cnpm_publish_time":1554566527889},"3.1.0":{"name":"write-json-file","version":"3.1.0","description":"Stringify and write JSON to a file atomically","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/write-json-file.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava && tsd-check"},"keywords":["write","json","stringify","file","fs","graceful","stable","sort","newline","indent","atomic","atomically"],"dependencies":{"detect-indent":"^5.0.0","graceful-fs":"^4.1.2","make-dir":"^1.0.0","pify":"^4.0.0","sort-keys":"^2.0.0","write-file-atomic":"^2.0.0"},"devDependencies":{"ava":"*","tempfile":"^2.0.0","tsd-check":"^0.2.1","xo":"*"},"gitHead":"70ebfd1db217a44dc645288a3aea0db43b8352d1","bugs":{"url":"https://github.com/sindresorhus/write-json-file/issues"},"homepage":"https://github.com/sindresorhus/write-json-file#readme","_id":"write-json-file@3.1.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"4f1d95a37d1348acd1f5a741e060261036b40b24","size":2972,"noattachment":false,"key":"/write-json-file/-/write-json-file-3.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/write-json-file/download/write-json-file-3.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/write-json-file_3.1.0_1549965545055_0.14646493470187538"},"_hasShrinkwrap":false,"publish_time":1549965545200,"_cnpm_publish_time":1549965545200},"3.0.2":{"name":"write-json-file","version":"3.0.2","description":"Stringify and write JSON to a file atomically","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/write-json-file.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava && tsd-check"},"keywords":["write","json","stringify","file","fs","graceful","stable","sort","newline","indent","atomic","atomically"],"dependencies":{"detect-indent":"^5.0.0","graceful-fs":"^4.1.2","make-dir":"^1.0.0","pify":"^4.0.0","sort-keys":"^2.0.0","write-file-atomic":"^2.0.0"},"devDependencies":{"ava":"*","tempfile":"^2.0.0","tsd-check":"^0.2.1","xo":"*"},"gitHead":"ff3ce3a2ea41f4863d9bef3c3832315f3f485938","bugs":{"url":"https://github.com/sindresorhus/write-json-file/issues"},"homepage":"https://github.com/sindresorhus/write-json-file#readme","_id":"write-json-file@3.0.2","_npmVersion":"6.2.0","_nodeVersion":"10.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"e2eba1a2c88271382198a49e4e8655253e4886e7","size":2997,"noattachment":false,"key":"/write-json-file/-/write-json-file-3.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/write-json-file/download/write-json-file-3.0.2.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/write-json-file_3.0.2_1536745257033_0.12113898616737062"},"_hasShrinkwrap":false,"publish_time":1536745257169,"_cnpm_publish_time":1536745257169},"3.0.1":{"name":"write-json-file","version":"3.0.1","description":"Stringify and write JSON to a file atomically","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/write-json-file.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava && tsd-check"},"keywords":["write","json","stringify","file","fs","graceful","stable","sort","newline","indent","atomic","atomically"],"dependencies":{"detect-indent":"^5.0.0","graceful-fs":"^4.1.2","make-dir":"^1.0.0","pify":"^4.0.0","sort-keys":"^2.0.0","write-file-atomic":"^2.0.0"},"devDependencies":{"ava":"*","tempfile":"^2.0.0","tsd-check":"^0.1.0","xo":"*"},"xo":{"ignores":["*.ts"]},"gitHead":"41abd90b5b7224555177c42885ff5d6cf0531a8c","bugs":{"url":"https://github.com/sindresorhus/write-json-file/issues"},"homepage":"https://github.com/sindresorhus/write-json-file#readme","_id":"write-json-file@3.0.1","_npmVersion":"5.6.0","_nodeVersion":"8.11.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"8f0ee42defa4f0423ba2894a04ca81b87f1777e9","size":3028,"noattachment":false,"key":"/write-json-file/-/write-json-file-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/write-json-file/download/write-json-file-3.0.1.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/write-json-file_3.0.1_1535952487826_0.8546839158588324"},"_hasShrinkwrap":false,"publish_time":1535952488026,"_cnpm_publish_time":1535952488026},"3.0.0":{"name":"write-json-file","version":"3.0.0","description":"Stringify and write JSON to a file atomically","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/write-json-file.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava"},"files":["index.js","index.d.ts"],"keywords":["write","json","stringify","file","fs","graceful","stable","sort","newline","indent","atomic","atomically"],"dependencies":{"detect-indent":"^5.0.0","graceful-fs":"^4.1.2","make-dir":"^1.0.0","pify":"^4.0.0","sort-keys":"^2.0.0","write-file-atomic":"^2.0.0"},"devDependencies":{"ava":"*","tempfile":"^2.0.0","xo":"*"},"xo":{"ignores":["index.d.ts"]},"gitHead":"182dd9428ca452b9a3d1fa0e0152ca06bc9cbbb8","bugs":{"url":"https://github.com/sindresorhus/write-json-file/issues"},"homepage":"https://github.com/sindresorhus/write-json-file#readme","_id":"write-json-file@3.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"fb0b2ecaa6636644ebdb26d8b9265cf9701a33f1","size":3017,"noattachment":false,"key":"/write-json-file/-/write-json-file-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/write-json-file/download/write-json-file-3.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/write-json-file_3.0.0_1535355368289_0.06037771826131633"},"_hasShrinkwrap":false,"publish_time":1535355368444,"_cnpm_publish_time":1535355368444},"2.3.0":{"name":"write-json-file","version":"2.3.0","description":"Stringify and write JSON to a file atomically","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/write-json-file.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["write","json","stringify","file","fs","graceful","stable","sort","newline","indent","atomic","atomically"],"dependencies":{"detect-indent":"^5.0.0","graceful-fs":"^4.1.2","make-dir":"^1.0.0","pify":"^3.0.0","sort-keys":"^2.0.0","write-file-atomic":"^2.0.0"},"devDependencies":{"ava":"*","tempfile":"^2.0.0","xo":"*"},"gitHead":"e4c9b991192adeb0e9b9f47ae691e2c46b4f3974","bugs":{"url":"https://github.com/sindresorhus/write-json-file/issues"},"homepage":"https://github.com/sindresorhus/write-json-file#readme","_id":"write-json-file@2.3.0","_shasum":"2b64c8a33004d54b8698c76d585a77ceb61da32f","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.8.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"2b64c8a33004d54b8698c76d585a77ceb61da32f","size":2551,"noattachment":false,"key":"/write-json-file/-/write-json-file-2.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/write-json-file/download/write-json-file-2.3.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/write-json-file-2.3.0.tgz_1507725714157_0.048371047247201204"},"directories":{},"publish_time":1507725714241,"_hasShrinkwrap":false,"_cnpm_publish_time":1507725714241},"2.2.0":{"name":"write-json-file","version":"2.2.0","description":"Stringify and write JSON to a file atomically","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/write-json-file.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["write","json","stringify","file","fs","graceful","stable","sort","newline","indent","atomic","atomically"],"dependencies":{"detect-indent":"^5.0.0","graceful-fs":"^4.1.2","make-dir":"^1.0.0","pify":"^2.0.0","sort-keys":"^1.1.1","write-file-atomic":"^2.0.0"},"devDependencies":{"ava":"*","tempfile":"^2.0.0","xo":"*"},"gitHead":"f69d6e1ac33db25e84d72e8528e5a3f6e64455ba","bugs":{"url":"https://github.com/sindresorhus/write-json-file/issues"},"homepage":"https://github.com/sindresorhus/write-json-file#readme","_id":"write-json-file@2.2.0","_shasum":"51862506bbb3b619eefab7859f1fd6c6d0530876","_from":".","_npmVersion":"2.15.11","_nodeVersion":"7.10.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"51862506bbb3b619eefab7859f1fd6c6d0530876","size":2557,"noattachment":false,"key":"/write-json-file/-/write-json-file-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/write-json-file/download/write-json-file-2.2.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/write-json-file-2.2.0.tgz_1495892659499_0.9785234299488366"},"directories":{},"publish_time":1495892659599,"_hasShrinkwrap":false,"_cnpm_publish_time":1495892659599},"2.1.0":{"name":"write-json-file","version":"2.1.0","description":"Stringify and write JSON to a file atomically","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/write-json-file.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["write","json","stringify","file","fs","graceful","stable","sort","newline","indent","atomic","atomically"],"dependencies":{"graceful-fs":"^4.1.2","make-dir":"^1.0.0","pify":"^2.0.0","sort-keys":"^1.1.1","write-file-atomic":"^2.0.0"},"devDependencies":{"ava":"*","tempfile":"^2.0.0","xo":"*"},"gitHead":"8c111fc3a619e7793bceea9b400cfafa820767be","bugs":{"url":"https://github.com/sindresorhus/write-json-file/issues"},"homepage":"https://github.com/sindresorhus/write-json-file#readme","_id":"write-json-file@2.1.0","_shasum":"ba1cf3ac7ee89db26c3d528986e48421389046b7","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"ba1cf3ac7ee89db26c3d528986e48421389046b7","size":2325,"noattachment":false,"key":"/write-json-file/-/write-json-file-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/write-json-file/download/write-json-file-2.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/write-json-file-2.1.0.tgz_1494572265898_0.31343368883244693"},"directories":{},"publish_time":1494572266132,"_hasShrinkwrap":false,"_cnpm_publish_time":1494572266132},"2.0.0":{"name":"write-json-file","version":"2.0.0","description":"Stringify and write JSON to a file atomically","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/write-json-file.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["write","json","stringify","file","fs","graceful","stable","sort","newline","indent","atomic","atomically"],"dependencies":{"graceful-fs":"^4.1.2","mkdirp":"^0.5.1","pify":"^2.0.0","sort-keys":"^1.1.1","write-file-atomic":"^1.1.2"},"devDependencies":{"ava":"*","tempfile":"^1.1.1","xo":"*"},"xo":{"esnext":true},"gitHead":"55318c25dc03efc63707c6fd9fa0b676aea3750a","bugs":{"url":"https://github.com/sindresorhus/write-json-file/issues"},"homepage":"https://github.com/sindresorhus/write-json-file#readme","_id":"write-json-file@2.0.0","_shasum":"0eaec981fcf9288dbc2806cbd26e06ab9bdca4ed","_from":".","_npmVersion":"2.15.0","_nodeVersion":"4.4.2","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"0eaec981fcf9288dbc2806cbd26e06ab9bdca4ed","size":2319,"noattachment":false,"key":"/write-json-file/-/write-json-file-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/write-json-file/download/write-json-file-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/write-json-file-2.0.0.tgz_1462037149159_0.17005165573209524"},"directories":{},"publish_time":1462037149591,"_cnpm_publish_time":1462037149591,"_hasShrinkwrap":false},"1.2.0":{"name":"write-json-file","version":"1.2.0","description":"Stringify and write JSON to a file atomically","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/write-json-file"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["json","write","stringify","file","fs","graceful","stable","sort","newline","indent","atomic","atomically"],"dependencies":{"graceful-fs":"^4.1.2","mkdirp":"^0.5.1","object-assign":"^4.0.1","pify":"^2.0.0","pinkie-promise":"^2.0.0","sort-keys":"^1.1.1","write-file-atomic":"^1.1.2"},"devDependencies":{"ava":"*","tempfile":"^1.1.1","xo":"*"},"xo":{"ignores":["test.js"]},"gitHead":"6dcedb880a8ec481eb65dc8cb66e2e781250effc","bugs":{"url":"https://github.com/sindresorhus/write-json-file/issues"},"homepage":"https://github.com/sindresorhus/write-json-file","_id":"write-json-file@1.2.0","_shasum":"2d5dfe96abc3c889057c93971aa4005efb548134","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"2d5dfe96abc3c889057c93971aa4005efb548134","size":2384,"noattachment":false,"key":"/write-json-file/-/write-json-file-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/write-json-file/download/write-json-file-1.2.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1447530500213,"_cnpm_publish_time":1447530500213,"_hasShrinkwrap":false},"1.1.1":{"name":"write-json-file","version":"1.1.1","description":"Stringify and write JSON to a file atomically","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/write-json-file"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["json","write","stringify","file","fs","graceful","stable","sort","newline","indent","atomic","atomically"],"dependencies":{"graceful-fs":"^4.1.2","mkdirp":"^0.5.1","object-assign":"^4.0.1","pify":"^2.0.0","pinkie-promise":"^1.0.0","sort-keys":"^1.1.1","write-file-atomic":"^1.1.2"},"devDependencies":{"ava":"*","tempfile":"^1.1.1","xo":"*"},"gitHead":"2a619f4f5c1a0853ecab5e21bba1fabc6568b93c","bugs":{"url":"https://github.com/sindresorhus/write-json-file/issues"},"homepage":"https://github.com/sindresorhus/write-json-file","_id":"write-json-file@1.1.1","_shasum":"823fb95489d8bcf569465115b34b16c5cf9ef4f8","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"823fb95489d8bcf569465115b34b16c5cf9ef4f8","size":2355,"noattachment":false,"key":"/write-json-file/-/write-json-file-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/write-json-file/download/write-json-file-1.1.1.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1441353266809,"_cnpm_publish_time":1441353266809,"_hasShrinkwrap":false},"1.1.0":{"name":"write-json-file","version":"1.1.0","description":"Stringify and write JSON to a file atomically","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/write-json-file.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["json","write","stringify","file","fs","graceful","stable","sort","newline","indent","atomic","atomically"],"dependencies":{"graceful-fs":"^4.1.2","mkdirp":"^0.5.1","object-assign":"^4.0.1","pify":"^1.1.0","pinkie-promise":"^1.0.0","sort-keys":"^1.1.1","write-file-atomic":"^1.1.2"},"devDependencies":{"ava":"*","tempfile":"^1.1.1","xo":"*"},"gitHead":"42f344cfa1114de61db2c7c44e7c6f912b8b8528","bugs":{"url":"https://github.com/sindresorhus/write-json-file/issues"},"homepage":"https://github.com/sindresorhus/write-json-file#readme","_id":"write-json-file@1.1.0","_shasum":"298dfd2e19df5b2b5c09e0001161dbd9d38fdd59","_from":".","_npmVersion":"2.13.3","_nodeVersion":"3.0.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"298dfd2e19df5b2b5c09e0001161dbd9d38fdd59","size":2349,"noattachment":false,"key":"/write-json-file/-/write-json-file-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/write-json-file/download/write-json-file-1.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1441182619965,"_cnpm_publish_time":1441182619965,"_hasShrinkwrap":false},"1.0.0":{"name":"write-json-file","version":"1.0.0","description":"Stringify and write JSON to a file atomically","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/write-json-file.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["json","write","stringify","file","fs","graceful","stable","sort","newline","indent","atomic","atomically"],"dependencies":{"object-assign":"^4.0.1","pify":"^1.1.0","pinkie-promise":"^1.0.0","sort-keys":"^1.1.1","write-file-atomic":"^1.1.2"},"devDependencies":{"ava":"*","tempfile":"^1.1.1","xo":"*"},"gitHead":"0ce9ff5815c4bf9c52aa428067f367e786e923ff","bugs":{"url":"https://github.com/sindresorhus/write-json-file/issues"},"homepage":"https://github.com/sindresorhus/write-json-file#readme","_id":"write-json-file@1.0.0","_shasum":"56f33e6683bb160b7b106781cc66c22399d47c57","_from":".","_npmVersion":"2.13.3","_nodeVersion":"3.0.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"56f33e6683bb160b7b106781cc66c22399d47c57","size":2192,"noattachment":false,"key":"/write-json-file/-/write-json-file-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/write-json-file/download/write-json-file-1.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1441175655268,"_cnpm_publish_time":1441175655268,"_hasShrinkwrap":false}},"readme":"# write-json-file\n\n> Stringify and write JSON to a file [atomically](https://github.com/npm/write-file-atomic)\n\nCreates directories for you as needed.\n\n## Install\n\n```sh\nnpm install write-json-file\n```\n\n## Usage\n\n```js\nimport {writeJsonFile} from 'write-json-file';\n\nawait writeJsonFile('foo.json', {foo: true});\n```\n\n## API\n\n### writeJsonFile(filePath, data, options?)\n\nReturns a `Promise`.\n\n### writeJsonFileSync(filePath, data, options?)\n\n#### options\n\nType: `object`\n\n##### indent\n\nType: `string | number | undefined`\\\nDefault: `'\\t'`\n\nIndentation as a string or number of spaces.\n\nPass in `undefined` for no formatting.\n\nIf you set both this and `detectIndent`, this value will be used when the indentation cannot be detected.\n\n##### detectIndent\n\nType: `boolean`\\\nDefault: `false`\n\nDetect indentation automatically if the file exists.\n\n##### sortKeys\n\nType: `boolean | Function`\\\nDefault: `false`\n\nSort the keys recursively.\n\nOptionally pass in a [`compare`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort) function.\n\n##### replacer\n\nType: `Function`\n\nPassed into [`JSON.stringify`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#The_replacer_parameter).\n\n##### mode\n\nType: `number`\\\nDefault: `0o666`\n\nThe [mode](https://en.wikipedia.org/wiki/File_system_permissions#Numeric_notation) used when writing the file.\n\n## Related\n\n- [load-json-file](https://github.com/sindresorhus/load-json-file) - Read and parse a JSON file\n- [make-dir](https://github.com/sindresorhus/make-dir) - Make a directory and its parents if needed\n","_attachments":{},"homepage":"https://github.com/sindresorhus/write-json-file#readme","bugs":{"url":"https://github.com/sindresorhus/write-json-file/issues"},"license":"MIT"}