{"_id":"flat","_rev":"3126882","name":"flat","description":"Take a nested Javascript object and flatten it, or unflatten an object with delimited keys","dist-tags":{"latest":"6.0.1"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"},{"name":"jkoops","email":""},{"name":"timoxley","email":""}],"time":{"modified":"2023-11-27T06:23:16.000Z","created":"2012-10-05T16:52:58.271Z","6.0.1":"2023-09-19T14:47:19.548Z","6.0.0":"2023-09-15T09:22:00.547Z","3.0.1":"2020-10-14T15:24:03.024Z","2.0.2":"2020-10-14T15:23:47.929Z","1.6.2":"2020-10-14T15:23:32.680Z","4.1.1":"2020-10-14T15:19:00.252Z","5.0.2":"2020-08-06T15:29:02.438Z","5.0.1":"2020-08-06T15:18:07.976Z","5.0.0":"2019-10-22T05:18:23.114Z","4.1.0":"2018-07-02T07:53:50.823Z","4.0.0":"2017-07-25T07:18:19.906Z","3.0.0":"2017-07-23T06:46:22.138Z","2.0.1":"2016-06-23T05:14:14.628Z","2.0.0":"2016-01-30T22:53:58.981Z","1.6.1":"2016-01-30T22:29:29.502Z","1.6.0":"2015-05-27T21:39:11.103Z","1.5.1":"2015-03-19T04:04:22.673Z","1.5.0":"2015-01-14T03:28:05.115Z","1.4.0":"2015-01-14T03:22:29.521Z","1.3.0":"2014-09-28T02:20:15.098Z","1.2.1":"2014-04-16T19:08:02.744Z","1.2.0":"2014-02-17T00:31:17.275Z","1.1.0":"2013-12-16T11:37:51.785Z","1.0.0":"2013-04-30T03:55:09.020Z","0.2.0":"2012-11-21T02:18:45.899Z","0.1.0":"2012-10-11T00:53:37.536Z","0.0.2":"2012-10-06T02:47:40.724Z","0.0.1":"2012-10-05T16:52:58.271Z"},"users":{"nromano":true,"zeke":true,"andreaspizsa":true,"donnicky":true,"maxwellrebo":true,"ctd1500":true,"jyap":true,"crewmoss":true,"nelsonic":true,"nanook":true,"fedor":true,"invelo":true,"vwal":true,"knownasilya":true,"zuizuihao":true,"csbun":true,"jovinbm":true,"zhouanbo":true,"nicolasembleton":true,"schmidsi":true,"langri-sha":true,"usingthesystem":true,"programmer.severson":true,"utkarsh85":true,"esundahl":true,"ga1989":true,"magicxiao":true,"mwurzberger":true,"rocket0191":true,"danielrhayes":true,"joje":true,"yusef.ho.tw":true,"ryanve":true,"shreyawhiz":true,"mixmix":true,"hitalos":true,"daniel-lewis-bsc-hons":true,"swedendrift":true,"isenricho":true,"justjavac":true,"danday74":true,"gbrlrg":true,"cognivator":true,"aramix":true,"robmcguinness":true},"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"https://hughsk.io"},"repository":{"type":"git","url":"git://github.com/hughsk/flat.git"},"versions":{"6.0.1":{"name":"flat","version":"6.0.1","type":"module","bin":{"flat":"cli.js"},"exports":{".":{"types":"./index.d.ts","default":"./index.js"}},"sideEffects":false,"engines":{"node":">=18"},"scripts":{"test":"node --test && standard cli.js index.js test/test.js"},"license":"BSD-3-Clause","description":"Take a nested Javascript object and flatten it, or unflatten an object with delimited keys","devDependencies":{"standard":"^17.1.0"},"repository":{"type":"git","url":"git://github.com/hughsk/flat.git"},"keywords":["flat","json","flatten","unflatten","split","object","nested"],"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"https://hughsk.io"},"bugs":{"url":"https://github.com/hughsk/flat/issues"},"homepage":"https://github.com/hughsk/flat","_id":"flat@6.0.1","gitHead":"05ac9ca6c4f612ca5ac30cd3ca8ccc396d97c4bf","types":"./index.d.ts","_nodeVersion":"20.7.0","_npmVersion":"10.1.0","dist":{"shasum":"09070cf918293b401577f20843edeadf4d3e8755","size":4437,"noattachment":false,"key":"/flat/-/flat-6.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/flat/download/flat-6.0.1.tgz"},"_npmUser":{"name":"jkoops","email":"jonkoops@gmail.com"},"directories":{},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"},{"name":"jkoops","email":""},{"name":"timoxley","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/flat_6.0.1_1695134839317_0.3338423327586695"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-09-19T14:47:19.548Z","publish_time":1695134839548,"_source_registry_name":"default","_cnpm_publish_time":1695134839548},"6.0.0":{"name":"flat","version":"6.0.0","type":"module","bin":{"flat":"cli.js"},"exports":{".":{"import":{"types":"./index.d.ts","default":"./index.js"}}},"sideEffects":false,"engines":{"node":">=18"},"scripts":{"test":"mocha -u tdd --reporter spec && standard cli.js index.js test/test.js"},"license":"BSD-3-Clause","description":"Take a nested Javascript object and flatten it, or unflatten an object with delimited keys","devDependencies":{"mocha":"^10.0.0","standard":"^17.0.0"},"repository":{"type":"git","url":"git://github.com/hughsk/flat.git"},"keywords":["flat","json","flatten","unflatten","split","object","nested"],"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"https://hughsk.io"},"bugs":{"url":"https://github.com/hughsk/flat/issues"},"homepage":"https://github.com/hughsk/flat","_id":"flat@6.0.0","gitHead":"906cba682c13202780b1904581b28bec6f498513","types":"./index.d.ts","_nodeVersion":"20.6.1","_npmVersion":"9.8.1","dist":{"shasum":"91dc171d2a361cf353e40afdaa3c40655cd10bb3","size":4468,"noattachment":false,"key":"/flat/-/flat-6.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/flat/download/flat-6.0.0.tgz"},"_npmUser":{"name":"jkoops","email":"jonkoops@gmail.com"},"directories":{},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"},{"name":"jkoops","email":""},{"name":"timoxley","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/flat_6.0.0_1694769720366_0.3137372313374336"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-09-15T09:22:00.547Z","publish_time":1694769720547,"_source_registry_name":"default","_cnpm_publish_time":1694769720547},"3.0.1":{"name":"flat","version":"3.0.1","main":"index.js","scripts":{"test":"mocha -u tdd --reporter spec"},"license":"BSD-3-Clause","description":"Take a nested Javascript object and flatten it, or unflatten an object with delimited keys","devDependencies":{"mocha":"~3.4.2"},"directories":{"test":"test"},"dependencies":{"is-buffer":"~1.1.5"},"repository":{"type":"git","url":"git://github.com/hughsk/flat.git"},"keywords":["flat","json","flatten","unflatten","split","object","nested"],"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://hughskennedy.com"},"bugs":{"url":"https://github.com/hughsk/flat/issues"},"homepage":"https://github.com/hughsk/flat","gitHead":"3099b93f6706d1a8d847f04c109de609f6f6edd3","_id":"flat@3.0.1","_nodeVersion":"14.12.0","_npmVersion":"6.14.8","_npmUser":{"name":"timoxley","email":"secoif@gmail.com"},"dist":{"shasum":"03f16ca26d6eec6139e2fc6a36931322b37a86b7","size":5101,"noattachment":false,"key":"/flat/-/flat-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/flat/download/flat-3.0.1.tgz"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"},{"name":"jkoops","email":""},{"name":"timoxley","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/flat_3.0.1_1602689042901_0.8685580813976279"},"_hasShrinkwrap":false,"publish_time":1602689043024,"_cnpm_publish_time":1602689043024},"2.0.2":{"name":"flat","version":"2.0.2","main":"index.js","scripts":{"test":"mocha -u tdd --reporter spec"},"license":"BSD-3-Clause","description":"Take a nested Javascript object and flatten it, or unflatten an object with delimited keys","devDependencies":{"mocha":"~2.4.5"},"directories":{"test":"test"},"dependencies":{"is-buffer":"~1.1.2"},"repository":{"type":"git","url":"git://github.com/hughsk/flat.git"},"keywords":["flat","json","flatten","unflatten","split","object","nested"],"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://hughskennedy.com"},"bugs":{"url":"https://github.com/hughsk/flat/issues"},"homepage":"https://github.com/hughsk/flat","gitHead":"c9bccfc45bee8772929d3048bf33643fb6cbd3f8","_id":"flat@2.0.2","_nodeVersion":"14.12.0","_npmVersion":"6.14.8","_npmUser":{"name":"timoxley","email":"secoif@gmail.com"},"dist":{"shasum":"d631430678b023a2f9bc10a23ac4ffad7e16b0f2","size":4962,"noattachment":false,"key":"/flat/-/flat-2.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/flat/download/flat-2.0.2.tgz"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"},{"name":"jkoops","email":""},{"name":"timoxley","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/flat_2.0.2_1602689026993_0.8708167754314091"},"_hasShrinkwrap":false,"publish_time":1602689027929,"_cnpm_publish_time":1602689027929},"1.6.2":{"name":"flat","version":"1.6.2","main":"index.js","scripts":{"test":"mocha -u tdd --reporter spec"},"license":"BSD-3-Clause","description":"Take a nested Javascript object and flatten it, or unflatten an object with delimited keys","devDependencies":{"mocha":"~2.4.5"},"directories":{"test":"test"},"dependencies":{"is-buffer":"~1.1.2"},"repository":{"type":"git","url":"git://github.com/hughsk/flat.git"},"keywords":["flat","json","flatten","unflatten","split","object","nested"],"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://hughskennedy.com"},"bugs":{"url":"https://github.com/hughsk/flat/issues"},"homepage":"https://github.com/hughsk/flat","gitHead":"e246ac18b036b376015592359690a5350d3f8304","_id":"flat@1.6.2","_nodeVersion":"14.12.0","_npmVersion":"6.14.8","_npmUser":{"name":"timoxley","email":"secoif@gmail.com"},"dist":{"shasum":"a107097d22d9733e25a402da28ddf3c1e9fc4afa","size":4704,"noattachment":false,"key":"/flat/-/flat-1.6.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/flat/download/flat-1.6.2.tgz"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"},{"name":"jkoops","email":""},{"name":"timoxley","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/flat_1.6.2_1602689012594_0.8884958306361832"},"_hasShrinkwrap":false,"publish_time":1602689012680,"_cnpm_publish_time":1602689012680},"4.1.1":{"name":"flat","version":"4.1.1","main":"index.js","bin":{"flat":"cli.js"},"scripts":{"test":"mocha -u tdd --reporter spec && standard index.js test/index.js"},"license":"BSD-3-Clause","description":"Take a nested Javascript object and flatten it, or unflatten an object with delimited keys","devDependencies":{"mocha":"~5.2.0","standard":"^11.0.1"},"directories":{"test":"test"},"dependencies":{"is-buffer":"~2.0.3"},"repository":{"type":"git","url":"git://github.com/hughsk/flat.git"},"keywords":["flat","json","flatten","unflatten","split","object","nested"],"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://hughskennedy.com"},"bugs":{"url":"https://github.com/hughsk/flat/issues"},"homepage":"https://github.com/hughsk/flat","gitHead":"d2ed12bea2bce66254b3d013e5a1cfc73b77c71e","_id":"flat@4.1.1","_nodeVersion":"14.12.0","_npmVersion":"6.14.8","_npmUser":{"name":"timoxley","email":"secoif@gmail.com"},"dist":{"shasum":"a392059cc382881ff98642f5da4dde0a959f309b","size":5806,"noattachment":false,"key":"/flat/-/flat-4.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/flat/download/flat-4.1.1.tgz"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"},{"name":"jkoops","email":""},{"name":"timoxley","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/flat_4.1.1_1602688740114_0.6525229927293774"},"_hasShrinkwrap":false,"publish_time":1602688740252,"_cnpm_publish_time":1602688740252},"5.0.2":{"name":"flat","version":"5.0.2","main":"index.js","bin":{"flat":"cli.js"},"scripts":{"test":"mocha -u tdd --reporter spec && standard cli.js index.js test/index.js"},"license":"BSD-3-Clause","description":"Take a nested Javascript object and flatten it, or unflatten an object with delimited keys","devDependencies":{"mocha":"~8.1.1","standard":"^14.3.4"},"directories":{"test":"test"},"dependencies":{},"repository":{"type":"git","url":"git://github.com/hughsk/flat.git"},"keywords":["flat","json","flatten","unflatten","split","object","nested"],"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://hughskennedy.com"},"bugs":{"url":"https://github.com/hughsk/flat/issues"},"homepage":"https://github.com/hughsk/flat","gitHead":"e5ffd664df8a1fcc05adc22dd0ac6a2b32a0955d","_id":"flat@5.0.2","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","_npmUser":{"name":"timoxley","email":"secoif@gmail.com"},"dist":{"shasum":"8ca6fe332069ffa9d324c327198c598259ceb241","size":6749,"noattachment":false,"key":"/flat/-/flat-5.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/flat/download/flat-5.0.2.tgz"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"},{"name":"jkoops","email":""},{"name":"timoxley","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/flat_5.0.2_1596727742231_0.4814206074995171"},"_hasShrinkwrap":false,"publish_time":1596727742438,"_cnpm_publish_time":1596727742438},"5.0.1":{"name":"flat","version":"5.0.1","main":"index.js","bin":{"flat":"cli.js"},"scripts":{"test":"mocha -u tdd --reporter spec && standard cli.js index.js test/index.js"},"license":"BSD-3-Clause","description":"Take a nested Javascript object and flatten it, or unflatten an object with delimited keys","devDependencies":{"mocha":"~6.2.2","standard":"^14.3.1"},"directories":{"test":"test"},"dependencies":{},"repository":{"type":"git","url":"git://github.com/hughsk/flat.git"},"keywords":["flat","json","flatten","unflatten","split","object","nested"],"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://hughskennedy.com"},"bugs":{"url":"https://github.com/hughsk/flat/issues"},"homepage":"https://github.com/hughsk/flat","gitHead":"f25d3a11306bc460e43a14affa64d44a1d3cf8ed","_id":"flat@5.0.1","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","_npmUser":{"name":"timoxley","email":"secoif@gmail.com"},"dist":{"shasum":"ed5f357d6c9e754d1fdc392b1d570426f8e013c2","size":6754,"noattachment":false,"key":"/flat/-/flat-5.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/flat/download/flat-5.0.1.tgz"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"},{"name":"jkoops","email":""},{"name":"timoxley","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/flat_5.0.1_1596727087803_0.7998844304226262"},"_hasShrinkwrap":false,"publish_time":1596727087976,"_cnpm_publish_time":1596727087976},"5.0.0":{"name":"flat","version":"5.0.0","main":"index.js","bin":{"flat":"cli.js"},"scripts":{"test":"mocha -u tdd --reporter spec && standard cli.js index.js test/index.js"},"license":"BSD-3-Clause","description":"Take a nested Javascript object and flatten it, or unflatten an object with delimited keys","devDependencies":{"mocha":"~6.2.2","standard":"^14.3.1"},"directories":{"test":"test"},"dependencies":{"is-buffer":"~2.0.4"},"repository":{"type":"git","url":"git://github.com/hughsk/flat.git"},"keywords":["flat","json","flatten","unflatten","split","object","nested"],"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://hughskennedy.com"},"bugs":{"url":"https://github.com/hughsk/flat/issues"},"homepage":"https://github.com/hughsk/flat","gitHead":"38239cce29330b715d3e31aa96115641bfcc22bd","_id":"flat@5.0.0","_nodeVersion":"8.15.1","_npmVersion":"6.12.0","_npmUser":{"name":"timoxley","email":"secoif@gmail.com"},"dist":{"shasum":"dab7d71d60413becb0ac2de9bf4304495e3af6af","size":6647,"noattachment":false,"key":"/flat/-/flat-5.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/flat/download/flat-5.0.0.tgz"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"},{"name":"jkoops","email":""},{"name":"timoxley","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/flat_5.0.0_1571721502973_0.8639825712799754"},"_hasShrinkwrap":false,"publish_time":1571721503114,"_cnpm_publish_time":1571721503114,"deprecated":"Fixed a prototype pollution security issue in 5.0.0, please upgrade to ^5.0.1."},"4.1.0":{"name":"flat","version":"4.1.0","main":"index.js","bin":{"flat":"cli.js"},"scripts":{"test":"mocha -u tdd --reporter spec && standard index.js test/index.js"},"license":"BSD-3-Clause","description":"Take a nested Javascript object and flatten it, or unflatten an object with delimited keys","devDependencies":{"mocha":"~5.2.0","standard":"^11.0.1"},"directories":{"test":"test"},"dependencies":{"is-buffer":"~2.0.3"},"repository":{"type":"git","url":"git://github.com/hughsk/flat.git"},"keywords":["flat","json","flatten","unflatten","split","object","nested"],"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://hughskennedy.com"},"bugs":{"url":"https://github.com/hughsk/flat/issues"},"homepage":"https://github.com/hughsk/flat","gitHead":"32432ddde3f08c44cc9e9e4f01616cd3fbf355bf","_id":"flat@4.1.0","_npmVersion":"6.1.0","_nodeVersion":"8.10.0","_npmUser":{"name":"timoxley","email":"secoif@gmail.com"},"dist":{"shasum":"090bec8b05e39cba309747f1d588f04dbaf98db2","size":5721,"noattachment":false,"key":"/flat/-/flat-4.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/flat/download/flat-4.1.0.tgz"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"},{"name":"jkoops","email":""},{"name":"timoxley","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/flat_4.1.0_1530518030710_0.09758610509584065"},"_hasShrinkwrap":false,"publish_time":1530518030823,"_cnpm_publish_time":1530518030823,"deprecated":"Fixed a prototype pollution security issue in 4.1.0, please upgrade to ^4.1.1 or ^5.0.1."},"4.0.0":{"name":"flat","version":"4.0.0","main":"index.js","scripts":{"test":"mocha -u tdd --reporter spec && standard index.js test/index.js"},"license":"BSD-3-Clause","description":"Take a nested Javascript object and flatten it, or unflatten an object with delimited keys","devDependencies":{"mocha":"~3.4.2","standard":"^10.0.2"},"directories":{"test":"test"},"dependencies":{"is-buffer":"~1.1.5"},"repository":{"type":"git","url":"git://github.com/hughsk/flat.git"},"keywords":["flat","json","flatten","unflatten","split","object","nested"],"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://hughskennedy.com"},"bugs":{"url":"https://github.com/hughsk/flat/issues"},"homepage":"https://github.com/hughsk/flat","gitHead":"b6633d0f2c1f06080e6fb51913ec5de749b884dc","_id":"flat@4.0.0","_npmVersion":"5.3.0","_nodeVersion":"8.1.2","_npmUser":{"name":"timoxley","email":"secoif@gmail.com"},"dist":{"shasum":"3abc7f3b588e64ce77dc42fd59aa35806622fea8","size":5272,"noattachment":false,"key":"/flat/-/flat-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/flat/download/flat-4.0.0.tgz"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"},{"name":"jkoops","email":""},{"name":"timoxley","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/flat-4.0.0.tgz_1500967099835_0.2749058313202113"},"publish_time":1500967099906,"_hasShrinkwrap":false,"_cnpm_publish_time":1500967099906,"deprecated":"Fixed a prototype pollution security issue in 4.0.0, please upgrade to ^4.1.1 or ^5.0.1."},"3.0.0":{"name":"flat","version":"3.0.0","main":"index.js","scripts":{"test":"mocha -u tdd --reporter spec"},"license":"BSD-3-Clause","description":"Take a nested Javascript object and flatten it, or unflatten an object with delimited keys","devDependencies":{"mocha":"~3.4.2"},"directories":{"test":"test"},"dependencies":{"is-buffer":"~1.1.5"},"repository":{"type":"git","url":"git://github.com/hughsk/flat.git"},"keywords":["flat","json","flatten","unflatten","split","object","nested"],"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://hughskennedy.com"},"bugs":{"url":"https://github.com/hughsk/flat/issues"},"homepage":"https://github.com/hughsk/flat","gitHead":"91211e8f2ae9fc677cc0ebb03d50f4bd540bca88","_id":"flat@3.0.0","_npmVersion":"5.3.0","_nodeVersion":"8.1.2","_npmUser":{"name":"timoxley","email":"secoif@gmail.com"},"dist":{"shasum":"a043850191c04c1ddfaee4d88fb22cc986d3240a","size":5092,"noattachment":false,"key":"/flat/-/flat-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/flat/download/flat-3.0.0.tgz"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"},{"name":"jkoops","email":""},{"name":"timoxley","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/flat-3.0.0.tgz_1500792381803_0.2621941566467285"},"publish_time":1500792382138,"_hasShrinkwrap":false,"_cnpm_publish_time":1500792382138,"deprecated":"Fixed a prototype pollution security issue in 3.0.0, please upgrade to ^3.0.1 or ^5.0.1."},"2.0.1":{"name":"flat","version":"2.0.1","main":"index.js","scripts":{"test":"mocha -u tdd --reporter spec"},"license":"BSD-3-Clause","description":"Take a nested Javascript object and flatten it, or unflatten an object with delimited keys","devDependencies":{"mocha":"~2.4.5"},"directories":{"test":"test"},"dependencies":{"is-buffer":"~1.1.2"},"repository":{"type":"git","url":"git://github.com/hughsk/flat.git"},"keywords":["flat","json","flatten","unflatten","split","object","nested"],"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://hughskennedy.com"},"bugs":{"url":"https://github.com/hughsk/flat/issues"},"homepage":"https://github.com/hughsk/flat","gitHead":"1b9c3c414b488af6105abb61dd3f32297c998904","_id":"flat@2.0.1","_shasum":"70e29188a74be0c3c89409eed1fa9577907ae32f","_from":".","_npmVersion":"3.9.6","_nodeVersion":"6.2.2","_npmUser":{"name":"timoxley","email":"secoif@gmail.com"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"},{"name":"jkoops","email":""},{"name":"timoxley","email":""}],"dist":{"shasum":"70e29188a74be0c3c89409eed1fa9577907ae32f","size":4959,"noattachment":false,"key":"/flat/-/flat-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/flat/download/flat-2.0.1.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/flat-2.0.1.tgz_1466658854108_0.529984715860337"},"publish_time":1466658854628,"_cnpm_publish_time":1466658854628,"_hasShrinkwrap":false,"deprecated":"Fixed a prototype pollution security issue in 2.0.1, please upgrade to ^2.0.2 or ^5.0.1."},"2.0.0":{"name":"flat","version":"2.0.0","main":"index.js","scripts":{"test":"mocha -u tdd --reporter spec"},"license":"BSD-3-Clause","description":"Take a nested Javascript object and flatten it, or unflatten an object with delimited keys","devDependencies":{"mocha":"~2.4.5"},"directories":{"test":"test"},"dependencies":{"is-buffer":"~1.1.2"},"repository":{"type":"git","url":"git://github.com/hughsk/flat.git"},"keywords":["flat","json","flatten","unflatten","split","object","nested"],"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://hughskennedy.com"},"bugs":{"url":"https://github.com/hughsk/flat/issues"},"homepage":"https://github.com/hughsk/flat","gitHead":"75442fd5704e4f57c523055bb92eb0eaaec5205e","_id":"flat@2.0.0","_shasum":"d556a0be36a4e601bbf10769b05682f453d24013","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.4","_npmUser":{"name":"timoxley","email":"secoif@gmail.com"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"},{"name":"jkoops","email":""},{"name":"timoxley","email":""}],"dist":{"shasum":"d556a0be36a4e601bbf10769b05682f453d24013","size":4923,"noattachment":false,"key":"/flat/-/flat-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/flat/download/flat-2.0.0.tgz"},"publish_time":1454194438981,"_cnpm_publish_time":1454194438981,"_hasShrinkwrap":false,"deprecated":"Fixed a prototype pollution security issue in 2.0.0, please upgrade to ^2.0.2 or ^5.0.1."},"1.6.1":{"name":"flat","version":"1.6.1","main":"index.js","scripts":{"test":"mocha -u tdd --reporter spec"},"license":"BSD-3-Clause","description":"Take a nested Javascript object and flatten it, or unflatten an object with delimited keys","devDependencies":{"mocha":"~2.4.5"},"directories":{"test":"test"},"dependencies":{"is-buffer":"~1.1.2"},"repository":{"type":"git","url":"git://github.com/hughsk/flat.git"},"keywords":["flat","json","flatten","unflatten","split","object","nested"],"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://hughskennedy.com"},"bugs":{"url":"https://github.com/hughsk/flat/issues"},"homepage":"https://github.com/hughsk/flat","gitHead":"d6418d11df572e0c58e9ae727675ce41df6787fb","_id":"flat@1.6.1","_shasum":"476b9dbb70d5e9340dbbc038bde084a20945921c","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.4","_npmUser":{"name":"timoxley","email":"secoif@gmail.com"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"},{"name":"jkoops","email":""},{"name":"timoxley","email":""}],"dist":{"shasum":"476b9dbb70d5e9340dbbc038bde084a20945921c","size":4695,"noattachment":false,"key":"/flat/-/flat-1.6.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/flat/download/flat-1.6.1.tgz"},"publish_time":1454192969502,"_cnpm_publish_time":1454192969502,"_hasShrinkwrap":false,"deprecated":"Fixed a prototype pollution security issue in 1.6.1, please upgrade to ^1.6.2 or ^5.0.1."},"1.6.0":{"name":"flat","version":"1.6.0","main":"index.js","scripts":{"test":"mocha -u tdd --reporter spec"},"license":"BSD-3-Clause","description":"Take a nested Javascript object and flatten it, or unflatten an object with delimited keys","devDependencies":{"mocha":"~1.6.0"},"directories":{"test":"test"},"dependencies":{},"repository":{"type":"git","url":"git://github.com/hughsk/flat.git"},"keywords":["flat","json","flatten","unflatten","split","object","nested"],"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://hughskennedy.com"},"bugs":{"url":"https://github.com/hughsk/flat/issues"},"homepage":"https://github.com/hughsk/flat","gitHead":"2dfe75aabaf6e44396f86d6ed9f9f72323129b68","_id":"flat@1.6.0","_shasum":"5a8b4c551a46b5ad0bfc91b6064b4b513e497d1c","_from":".","_npmVersion":"2.10.0","_nodeVersion":"1.8.1","_npmUser":{"name":"timoxley","email":"secoif@gmail.com"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"},{"name":"jkoops","email":""},{"name":"timoxley","email":""}],"dist":{"shasum":"5a8b4c551a46b5ad0bfc91b6064b4b513e497d1c","size":4684,"noattachment":false,"key":"/flat/-/flat-1.6.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/flat/download/flat-1.6.0.tgz"},"publish_time":1432762751103,"_cnpm_publish_time":1432762751103,"_hasShrinkwrap":false,"deprecated":"Fixed a prototype pollution security issue in 1.6.0, please upgrade to ^1.6.2 or ^5.0.1."},"1.5.1":{"name":"flat","version":"1.5.1","main":"index.js","scripts":{"test":"mocha -u tdd --reporter spec"},"license":"BSD","description":"Take a nested Javascript object and flatten it, or unflatten an object with delimited keys","devDependencies":{"mocha":"~1.6.0"},"directories":{"test":"test"},"dependencies":{},"repository":{"type":"git","url":"git://github.com/hughsk/flat.git"},"keywords":["flat","json","flatten","unflatten","split","object","nested"],"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://hughskennedy.com"},"bugs":{"url":"https://github.com/hughsk/flat/issues"},"homepage":"https://github.com/hughsk/flat","gitHead":"b573069344ad88a5e65ad88a5e58804649345c8f","_id":"flat@1.5.1","_shasum":"a2905a886d6f5551c58d0d745b562a38b843c062","_from":".","_npmVersion":"2.6.0","_nodeVersion":"0.10.36","_npmUser":{"name":"timoxley","email":"secoif@gmail.com"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"},{"name":"jkoops","email":""},{"name":"timoxley","email":""}],"dist":{"shasum":"a2905a886d6f5551c58d0d745b562a38b843c062","size":4604,"noattachment":false,"key":"/flat/-/flat-1.5.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/flat/download/flat-1.5.1.tgz"},"publish_time":1426737862673,"_cnpm_publish_time":1426737862673,"_hasShrinkwrap":false,"deprecated":"Fixed a prototype pollution security issue in flat, please upgrade to ^1.6.2 or ^5.0.1."},"1.5.0":{"name":"flat","version":"1.5.0","main":"index.js","scripts":{"test":"mocha -u tdd --reporter spec"},"license":"BSD","description":"Take a nested Javascript object and flatten it, or unflatten an object with delimited keys","devDependencies":{"mocha":"~1.6.0"},"directories":{"test":"test"},"dependencies":{},"repository":{"type":"git","url":"git://github.com/hughsk/flat.git"},"keywords":["flat","json","flatten","unflatten","split","object","nested"],"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://hughskennedy.com"},"bugs":{"url":"https://github.com/hughsk/flat/issues"},"homepage":"https://github.com/hughsk/flat","gitHead":"90f4598f59a3292e352ed8b45c7540983d0d76e9","_id":"flat@1.5.0","_shasum":"77e304b51e69127c7ba2fd0b35a2358a2530d87b","_from":".","_npmVersion":"2.1.18","_nodeVersion":"0.11.15-pre","_npmUser":{"name":"timoxley","email":"secoif@gmail.com"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"},{"name":"jkoops","email":""},{"name":"timoxley","email":""}],"dist":{"shasum":"77e304b51e69127c7ba2fd0b35a2358a2530d87b","size":4434,"noattachment":false,"key":"/flat/-/flat-1.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/flat/download/flat-1.5.0.tgz"},"publish_time":1421206085115,"_cnpm_publish_time":1421206085115,"_hasShrinkwrap":false,"deprecated":"Fixed a prototype pollution security issue in flat, please upgrade to ^1.6.2 or ^5.0.1."},"1.4.0":{"name":"flat","version":"1.4.0","main":"index.js","scripts":{"test":"mocha -u tdd --reporter spec"},"license":"BSD","description":"Take a nested Javascript object and flatten it, or unflatten an object with delimited keys","devDependencies":{"mocha":"~1.6.0"},"directories":{"test":"test"},"dependencies":{},"repository":{"type":"git","url":"git://github.com/hughsk/flat.git"},"keywords":["flat","json","flatten","unflatten","split","object","nested"],"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://hughskennedy.com"},"bugs":{"url":"https://github.com/hughsk/flat/issues"},"homepage":"https://github.com/hughsk/flat","gitHead":"0c9422d6c9b6af64f18493dde46215b18c1fc3f4","_id":"flat@1.4.0","_shasum":"df4fdd00aafeba0d1ae71bfde4b1f8d39c3e7d50","_from":".","_npmVersion":"2.1.18","_nodeVersion":"0.11.15-pre","_npmUser":{"name":"timoxley","email":"secoif@gmail.com"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"},{"name":"jkoops","email":""},{"name":"timoxley","email":""}],"dist":{"shasum":"df4fdd00aafeba0d1ae71bfde4b1f8d39c3e7d50","size":4067,"noattachment":false,"key":"/flat/-/flat-1.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/flat/download/flat-1.4.0.tgz"},"publish_time":1421205749521,"_cnpm_publish_time":1421205749521,"_hasShrinkwrap":false,"deprecated":"Fixed a prototype pollution security issue in flat, please upgrade to ^1.6.2 or ^5.0.1."},"1.3.0":{"name":"flat","version":"1.3.0","main":"index.js","scripts":{"test":"mocha -u tdd --reporter spec"},"license":"BSD","description":"Take a nested Javascript object and flatten it, or unflatten an object with delimited keys","devDependencies":{"mocha":"~1.6.0"},"directories":{"test":"test"},"dependencies":{},"repository":{"type":"git","url":"git://github.com/hughsk/flat.git"},"keywords":["flat","json","flatten","unflatten","split","object","nested"],"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://hughskennedy.com"},"bugs":{"url":"https://github.com/hughsk/flat/issues"},"homepage":"https://github.com/hughsk/flat","gitHead":"0b447a22423f3ae8ab2d25ebbbd4d198221bec36","_id":"flat@1.3.0","_shasum":"7fffdf894871dbbb1960824e40f5225ea3c09d3b","_from":".","_npmVersion":"2.0.2","_nodeVersion":"0.10.32","_npmUser":{"name":"timoxley","email":"secoif@gmail.com"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"},{"name":"jkoops","email":""},{"name":"timoxley","email":""}],"dist":{"shasum":"7fffdf894871dbbb1960824e40f5225ea3c09d3b","size":4032,"noattachment":false,"key":"/flat/-/flat-1.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/flat/download/flat-1.3.0.tgz"},"publish_time":1411870815098,"_cnpm_publish_time":1411870815098,"_hasShrinkwrap":false,"deprecated":"Fixed a prototype pollution security issue in flat, please upgrade to ^1.6.2 or ^5.0.1."},"1.2.1":{"name":"flat","version":"1.2.1","main":"index.js","scripts":{"test":"mocha -u tdd --reporter spec"},"license":"BSD","description":"Take a nested Javascript object and flatten it, or unflatten an object with delimited keys","devDependencies":{"mocha":"~1.6.0"},"directories":{"test":"test"},"dependencies":{},"repository":{"type":"git","url":"git://github.com/hughsk/flat.git"},"keywords":["flat","json","flatten","unflatten","split","object","nested"],"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://hughskennedy.com"},"bugs":{"url":"https://github.com/hughsk/flat/issues"},"homepage":"https://github.com/hughsk/flat","_id":"flat@1.2.1","dist":{"shasum":"316db8c0f108252863cda05e6e6206cb7b04e032","size":3189,"noattachment":false,"key":"/flat/-/flat-1.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/flat/download/flat-1.2.1.tgz"},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"hughsk","email":"hughskennedy@gmail.com"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"},{"name":"jkoops","email":""},{"name":"timoxley","email":""}],"publish_time":1397675282744,"_cnpm_publish_time":1397675282744,"_hasShrinkwrap":false,"deprecated":"Fixed a prototype pollution security issue in flat, please upgrade to ^1.6.2 or ^5.0.1."},"1.2.0":{"name":"flat","version":"1.2.0","main":"index.js","scripts":{"test":"mocha -u tdd --reporter spec"},"license":"BSD","description":"Take a nested Javascript object and flatten it, or unflatten an object with delimited keys","devDependencies":{"mocha":"~1.6.0"},"directories":{"test":"test"},"dependencies":{},"repository":{"type":"git","url":"git://github.com/hughsk/flat.git"},"keywords":["flat","json","flatten","unflatten","split","object","nested"],"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://hughskennedy.com"},"bugs":{"url":"https://github.com/hughsk/flat/issues"},"homepage":"https://github.com/hughsk/flat","_id":"flat@1.2.0","dist":{"shasum":"3935913dd2063ecf57ada1d4fa96c82131cfa38e","size":3130,"noattachment":false,"key":"/flat/-/flat-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/flat/download/flat-1.2.0.tgz"},"_from":".","_npmVersion":"1.4.2","_npmUser":{"name":"hughsk","email":"hughskennedy@gmail.com"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"},{"name":"jkoops","email":""},{"name":"timoxley","email":""}],"publish_time":1392597077275,"_cnpm_publish_time":1392597077275,"_hasShrinkwrap":false,"deprecated":"Fixed a prototype pollution security issue in flat, please upgrade to ^1.6.2 or ^5.0.1."},"1.1.0":{"name":"flat","version":"1.1.0","main":"index.js","scripts":{"test":"node_modules/.bin/mocha -u tdd --reporter spec"},"license":"BSD","description":"Take a nested Javascript object and flatten it, or unflatten an object with delimited keys","devDependencies":{"mocha":"~1.6.0"},"directories":{"test":"test"},"dependencies":{},"repository":{"type":"git","url":"git://github.com/hughsk/flat.git"},"keywords":["flat","json","flatten","unflatten","split","object","nested"],"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://hughskennedy.com"},"readmeFilename":"README.md","bugs":{"url":"https://github.com/hughsk/flat/issues"},"homepage":"https://github.com/hughsk/flat","_id":"flat@1.1.0","dist":{"shasum":"b1d1795e6b7500cf41a9a71cd37a4e641f6e069a","size":3199,"noattachment":false,"key":"/flat/-/flat-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/flat/download/flat-1.1.0.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"hughsk","email":"hughskennedy@gmail.com"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"},{"name":"jkoops","email":""},{"name":"timoxley","email":""}],"publish_time":1387193871785,"_cnpm_publish_time":1387193871785,"_hasShrinkwrap":false,"deprecated":"Fixed a prototype pollution security issue in flat, please upgrade to ^1.6.2 or ^5.0.1."},"1.0.0":{"name":"flat","version":"1.0.0","main":"index.js","scripts":{"test":"node_modules/.bin/mocha -u tdd --reporter spec"},"license":"BSD","description":"Take a nested Javascript object and flatten it, or unflatten an object with delimited keys","devDependencies":{"mocha":"~1.6.0"},"directories":{"test":"test"},"dependencies":{},"repository":{"type":"git","url":"git://github.com/hughsk/flat.git"},"keywords":["flat","json","flatten","unflatten","split","object","nested"],"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://hughskennedy.com"},"readmeFilename":"README.md","_id":"flat@1.0.0","dist":{"shasum":"01dfdd5bcbc149c66b35ed401e1d753f1aad8d59","size":2956,"noattachment":false,"key":"/flat/-/flat-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/flat/download/flat-1.0.0.tgz"},"_npmVersion":"1.1.71","_npmUser":{"name":"hughsk","email":"hughskennedy@gmail.com"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"},{"name":"jkoops","email":""},{"name":"timoxley","email":""}],"publish_time":1367294109020,"_cnpm_publish_time":1367294109020,"_hasShrinkwrap":false,"deprecated":"Fixed a prototype pollution security issue in flat, please upgrade to ^1.6.2 or ^5.0.1."},"0.2.0":{"name":"flat","version":"0.2.0","main":"index.js","scripts":{"test":"node_modules/.bin/mocha -u tdd --reporter spec"},"license":"BSD","description":"Take a nested Javascript object and flatten it, or unflatten an object with delimited keys","devDependencies":{"mocha":"~1.6.0"},"directories":{"test":"test"},"dependencies":{},"repository":{"type":"git","url":"git://github.com/hughsk/flat.git"},"keywords":["flat","json","flatten","unflatten","split","object","nested"],"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://hughskennedy.com"},"_id":"flat@0.2.0","dist":{"shasum":"18979f424c89b06f78c7bf7268f26dfb1d20ded2","size":2703,"noattachment":false,"key":"/flat/-/flat-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/flat/download/flat-0.2.0.tgz"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"},{"name":"jkoops","email":""},{"name":"timoxley","email":""}],"publish_time":1353464325899,"_cnpm_publish_time":1353464325899,"_hasShrinkwrap":false},"0.1.0":{"name":"flat","version":"0.1.0","main":"index.js","scripts":{"test":"node_modules/.bin/mocha -u tdd --reporter spec"},"license":"BSD","description":"Take a nested Javascript object and flatten it, or unflatten an object with delimited keys","devDependencies":{"mocha":"~1.6.0"},"directories":{"test":"test"},"dependencies":{},"repository":{"type":"git","url":"git://github.com/hughsk/flat.git"},"keywords":["flat","json","flatten","unflatten","split","object","nested"],"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://hughskennedy.com"},"_id":"flat@0.1.0","dist":{"shasum":"e9bcffd81187b1935b0e5d1771056141a00a02f7","size":2429,"noattachment":false,"key":"/flat/-/flat-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/flat/download/flat-0.1.0.tgz"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"},{"name":"jkoops","email":""},{"name":"timoxley","email":""}],"publish_time":1349916817536,"_cnpm_publish_time":1349916817536,"_hasShrinkwrap":false},"0.0.2":{"name":"flat","version":"0.0.2","main":"index.js","scripts":{"test":"node_modules/.bin/mocha -u tdd --reporter spec"},"license":"BSD","description":"Take a nested Javascript object and flatten it, or unflatten an object with delimited keys","devDependencies":{"mocha":"~1.6.0"},"directories":{"test":"test"},"dependencies":{},"repository":{"type":"git","url":"git://github.com/hughsk/flat.git"},"keywords":["flat","json","flatten","unflatten","split","object","nested"],"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://hughskennedy.com"},"_id":"flat@0.0.2","dist":{"shasum":"e7523fd685e1157ff293bfae5985fa0e5997e81f","size":1965,"noattachment":false,"key":"/flat/-/flat-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/flat/download/flat-0.0.2.tgz"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"},{"name":"jkoops","email":""},{"name":"timoxley","email":""}],"publish_time":1349491660724,"_cnpm_publish_time":1349491660724,"_hasShrinkwrap":false},"0.0.1":{"name":"flat","version":"0.0.1","main":"index.js","scripts":{"test":"node_modules/.bin/mocha -u tdd --reporter spec"},"license":"BSD","description":"Take a nested Javascript object and flatten it, or unflatten an object with delimited keys","devDependencies":{"mocha":"~1.6.0"},"directories":{"test":"test"},"dependencies":{},"repository":{"type":"git","url":"git://github.com/hughsk/flat.git"},"keywords":["flat","json","flatten","unflatten","split","object","nested"],"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://hughskennedy.com"},"_id":"flat@0.0.1","dist":{"shasum":"8c807760ebbde7fd75582e5a8ffa80802ca07976","size":1519,"noattachment":false,"key":"/flat/-/flat-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/flat/download/flat-0.0.1.tgz"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"},{"name":"jkoops","email":""},{"name":"timoxley","email":""}],"publish_time":1349455978271,"_cnpm_publish_time":1349455978271,"_hasShrinkwrap":false}},"readme":"# flat [![Build Status](https://github.com/hughsk/flat/actions/workflows/main.yml/badge.svg)](https://github.com/hughsk/flat/actions/workflows/main.yml)\n\nTake a nested Javascript object and flatten it, or unflatten an object with\ndelimited keys.\n\n## Installation\n\n``` bash\n$ npm install flat\n```\n\n## Methods\n\n### flatten(original, options)\n\nFlattens the object - it'll return an object one level deep, regardless of how\nnested the original object was:\n\n``` javascript\nimport { flatten } from 'flat'\n\nflatten({\n    key1: {\n        keyA: 'valueI'\n    },\n    key2: {\n        keyB: 'valueII'\n    },\n    key3: { a: { b: { c: 2 } } }\n})\n\n// {\n//   'key1.keyA': 'valueI',\n//   'key2.keyB': 'valueII',\n//   'key3.a.b.c': 2\n// }\n```\n\n### unflatten(original, options)\n\nFlattening is reversible too, you can call `unflatten` on an object:\n\n``` javascript\nimport { unflatten } from 'flat'\n\nunflatten({\n    'three.levels.deep': 42,\n    'three.levels': {\n        nested: true\n    }\n})\n\n// {\n//     three: {\n//         levels: {\n//             deep: 42,\n//             nested: true\n//         }\n//     }\n// }\n```\n\n## Options\n\n### delimiter\n\nUse a custom delimiter for (un)flattening your objects, instead of `.`.\n\n### safe\n\nWhen enabled, both `flat` and `unflatten` will preserve arrays and their\ncontents. This is disabled by default.\n\n``` javascript\nimport { flatten } from 'flat'\n\nflatten({\n    this: [\n        { contains: 'arrays' },\n        { preserving: {\n              them: 'for you'\n        }}\n    ]\n}, {\n    safe: true\n})\n\n// {\n//     'this': [\n//         { contains: 'arrays' },\n//         { preserving: {\n//             them: 'for you'\n//         }}\n//     ]\n// }\n```\n\n### object\n\nWhen enabled, arrays will not be created automatically when calling unflatten, like so:\n\n``` javascript\nunflatten({\n    'hello.you.0': 'ipsum',\n    'hello.you.1': 'lorem',\n    'hello.other.world': 'foo'\n}, { object: true })\n\n// hello: {\n//     you: {\n//         0: 'ipsum',\n//         1: 'lorem',\n//     },\n//     other: { world: 'foo' }\n// }\n```\n\n### overwrite\n\nWhen enabled, existing keys in the unflattened object may be overwritten if they cannot hold a newly encountered nested value:\n\n```javascript\nunflatten({\n    'TRAVIS': 'true',\n    'TRAVIS.DIR': '/home/travis/build/kvz/environmental'\n}, { overwrite: true })\n\n// TRAVIS: {\n//     DIR: '/home/travis/build/kvz/environmental'\n// }\n```\n\nWithout `overwrite` set to `true`, the `TRAVIS` key would already have been set to a string, thus could not accept the nested `DIR` element.\n\nThis only makes sense on ordered arrays, and since we're overwriting data, should be used with care.\n\n\n### maxDepth\n\nMaximum number of nested objects to flatten.\n\n``` javascript\nimport { flatten } from 'flat'\n\nflatten({\n    key1: {\n        keyA: 'valueI'\n    },\n    key2: {\n        keyB: 'valueII'\n    },\n    key3: { a: { b: { c: 2 } } }\n}, { maxDepth: 2 })\n\n// {\n//   'key1.keyA': 'valueI',\n//   'key2.keyB': 'valueII',\n//   'key3.a': { b: { c: 2 } }\n// }\n```\n\n### transformKey\n\nTransform each part of a flat key before and after flattening.\n\n```javascript\nimport { flatten, unflatten } from 'flat'\n\nflatten({\n    key1: {\n        keyA: 'valueI'\n    },\n    key2: {\n        keyB: 'valueII'\n    },\n    key3: { a: { b: { c: 2 } } }\n}, {\n    transformKey: function(key){\n      return '__' + key + '__';\n    }\n})\n\n// {\n//   '__key1__.__keyA__': 'valueI',\n//   '__key2__.__keyB__': 'valueII',\n//   '__key3__.__a__.__b__.__c__': 2\n// }\n\nunflatten({\n      '__key1__.__keyA__': 'valueI',\n      '__key2__.__keyB__': 'valueII',\n      '__key3__.__a__.__b__.__c__': 2\n}, {\n    transformKey: function(key){\n      return key.substring(2, key.length - 2)\n    }\n})\n\n// {\n//     key1: {\n//         keyA: 'valueI'\n//     },\n//     key2: {\n//         keyB: 'valueII'\n//     },\n//     key3: { a: { b: { c: 2 } } }\n// }\n```\n\n## Command Line Usage\n\n`flat` is also available as a command line tool. You can run it with [`npx`](https://docs.npmjs.com/cli/v8/commands/npx):\n\n```sh\nnpx flat foo.json\n```\n\nOr install the `flat` command globally:\n \n```sh\nnpm i -g flat && flat foo.json\n```\n\nAccepts a filename as an argument:\n\n```sh\nflat foo.json\n```\n\nAlso accepts JSON on stdin:\n\n```sh\ncat foo.json | flat\n```\n","_attachments":{},"homepage":"https://github.com/hughsk/flat","bugs":{"url":"https://github.com/hughsk/flat/issues"},"license":"BSD-3-Clause"}