{"_id":"parse-json-config","_rev":"1653453","name":"parse-json-config","description":"Works like the way Babel parses its presets","dist-tags":{"latest":"0.4.2"},"maintainers":[{"name":"rem","email":"0x142857@gmail.com"}],"time":{"modified":"2026-10-30T18:43:10.000Z","created":"2017-05-27T04:23:50.520Z","0.4.2":"2018-12-13T08:56:04.052Z","0.4.1":"2018-12-13T08:53:02.233Z","0.4.0":"2018-12-13T08:52:18.640Z","0.3.1":"2018-07-29T14:36:05.028Z","0.3.0":"2018-05-19T14:34:16.733Z","0.2.2":"2018-05-19T13:52:15.256Z","0.2.1":"2017-11-08T03:49:39.303Z","0.2.0":"2017-05-27T04:45:51.313Z","0.1.0":"2017-05-27T04:23:50.520Z"},"users":{},"author":{"name":"egoist","email":"0x142857@gmail.com"},"repository":{"url":"git+https://github.com/egoist/parse-json-config.git","type":"git"},"versions":{"0.4.2":{"name":"parse-json-config","version":"0.4.2","description":"Works like the way Babel parses its presets","repository":{"url":"git+https://github.com/egoist/parse-json-config.git","type":"git"},"main":"lib/index.js","scripts":{"test:cov":"jest --coverage && npm run lint","test":"jest && npm run lint","test:watch":"jest --watch","lint":"xo"},"author":{"name":"egoist","email":"0x142857@gmail.com"},"license":"MIT","jest":{"testEnvironment":"node"},"devDependencies":{"@test/prefix-stub":"file:./test/fixture/@test/prefix-stub","@test/stub":"file:./test/fixture/@test/stub","eslint-config-rem":"^3.0.0","jest-cli":"^19.0.0","prefix-stub":"file:./test/fixture/prefix-stub","xo":"^0.18.0"},"xo":{"extends":"rem/prettier","envs":["jest"],"ignores":["fixture/**"]},"dependencies":{"resolve-from":"^4.0.0"},"gitHead":"ec4454cb9667b60f18e80c7c24da56642e0b56d7","bugs":{"url":"https://github.com/egoist/parse-json-config/issues"},"homepage":"https://github.com/egoist/parse-json-config#readme","_id":"parse-json-config@0.4.2","_npmVersion":"6.4.1","_nodeVersion":"10.11.0","_npmUser":{"name":"egoist","email":"0x142857@gmail.com"},"dist":{"integrity":"sha512-MyMzdVORDf1puPMQUqZFLKvdDxxLzdyKp22bS+aoxEcSusiDdKOMs1PFMtSEl+XjSWqi6bch0KDVo8oAtnRaFw==","shasum":"82b32be7b44da3a7a9abce81caffeb457b7185d2","tarball":"http://registry-npm.ywwl.com/parse-json-config/download/parse-json-config-0.4.2.tgz","fileCount":5,"unpackedSize":9731,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcEh6kCRA9TVsSAnZWagAAtgkQAIFUL1ms46CylUA0M+nd\nKPDYXbEAEi2BDvikMltVZM7S5IU+E3jsNDb3udq3udn5Sc5T4md5i/dYw3vm\npwA/OC6OD7PuRPszVFlWC3FKr4TpG7rUkZqLT4/xpWhXqOAKNzd3FR2GTi+6\nfPPaeL8M6sNeP8iqCuSeCrOqaE+AS/9x4uU4+YOvuV5OOHocPnSrHvmQLAqf\nKn/AJ5D29L9UUVIFaA6HVynay5lUjakogDuNWEk61nVCdUAh3kRaf/SCFkgz\nZUXKSEZ+uAORhwnjvL5R+dyNrJgtuk3UVJoBW5hrGAGTvJC48k0+oxkFleeD\n4SFuGk+BrgqtTPuXKoYfX+lMz1+QIti+gWvXTERDSUfGSfZsZRicMj9uKthw\nW8r/LbjQZpEPVgHnGVyRC3sO76NVm8z/j/4jP5m49jfluRwR6V8uOJBKbzk8\nQeKbpWFjuULWEhdt1HKyNylpmmz8AcPP2zh1gXe1sNDa1JB6TQLoZyheqrx9\nOsUAcgeWkO3U/Aors/s5vqoVhpK81vF1/tsiPMTI6iLKkkbs3WsP2AkULooG\nGfn4eVhMJg+cM9cwXa6VWM23u0dvOms7BWr+5h1mXzOITlJ75vB1aYuExawB\nmSW2ddzH3JvYdTcVT6fmVZAMbvJJfUkemq6aCRaSsEvdXirDyoRCVHE3zUgn\n6fZ1\r\n=AHLN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAIBo9WFQrboFhk4kl6rM8TfE6dnNi66MzNQJyyaasGmAiB46WMv+cGa1Xkix14hS+/pKuSZr/yTZWL2wzuEzhIl4Q=="}],"size":3840,"noattachment":false,"key":"/parse-json-config/-/parse-json-config-0.4.2.tgz"},"maintainers":[{"name":"rem","email":"0x142857@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-json-config_0.4.2_1544691363921_0.1526795014723401"},"_hasShrinkwrap":false,"publish_time":1544691364052,"_cnpm_publish_time":1544691364052},"0.4.1":{"name":"parse-json-config","version":"0.4.1","description":"Works like the way Babel parses its presets","repository":{"url":"git+https://github.com/egoist/parse-json-config.git","type":"git"},"main":"dist/index.js","scripts":{"test:cov":"jest --coverage && npm run lint","test":"jest && npm run lint","test:watch":"jest --watch","lint":"xo","build":"ncc build src/index.js --no-minify --no-source-map","prepublishOnly":"npm run build"},"author":{"name":"egoist","email":"0x142857@gmail.com"},"license":"MIT","jest":{"testEnvironment":"node"},"devDependencies":{"@test/prefix-stub":"file:./test/fixture/@test/prefix-stub","@test/stub":"file:./test/fixture/@test/stub","@zeit/ncc":"^0.5.5","eslint-config-rem":"^3.0.0","jest-cli":"^19.0.0","prefix-stub":"file:./test/fixture/prefix-stub","resolve-from":"^4.0.0","xo":"^0.18.0"},"xo":{"extends":"rem/prettier","envs":["jest"],"ignores":["fixture/**"]},"gitHead":"4e79d446c2d080217d8e90140a95d9ff16a5a141","bugs":{"url":"https://github.com/egoist/parse-json-config/issues"},"homepage":"https://github.com/egoist/parse-json-config#readme","_id":"parse-json-config@0.4.1","_npmVersion":"6.4.1","_nodeVersion":"10.11.0","_npmUser":{"name":"egoist","email":"0x142857@gmail.com"},"dist":{"integrity":"sha512-TT2MyxGqkApdyxKTBafGvMpF/nER1yEQ14Nlsegl+1PmJQ6TOMi7Zvx/eLVAi7Y3mIYayGqvcr0v8X175OM8zw==","shasum":"d6226b3fef08cb37405eea6e457aeeaccf10489a","tarball":"http://registry-npm.ywwl.com/parse-json-config/download/parse-json-config-0.4.1.tgz","fileCount":4,"unpackedSize":15660,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcEh3uCRA9TVsSAnZWagAAvgMP/ArJw1/Zn1KitRAIgdQS\n88GhrLIYYMEvqXg/5DWgh6oVV0L1e56zSqQfZeAsvEG30zoSYr9egABYLcTn\n/874SwStNav+2erGpkAZFEDX7on3ToPar2vQxKkB8WriiYtN1tXrrIGDAPn5\nk98wbeKA1lgygffdKEmv0Z0glMd7XM/ZNNjlvIdyPjQ5lkZ6iSpvQwfAgjDg\n9pVKhmLQfFjDWqDSG1F+8GRFVmJzwnhUr/fT3KQvClRhMQD9+2/KExvBxWY2\naYtYmnELrirb2vDzECPg5z/fmLQrLYipIHG/ciB4NJJ0i1FGK8m0aYXq/JEY\n/wAV4I8ff2lzcU4Vnh+L96WudU2CmtN15g/UVymRvJFBJaW36kdoJ7d7xqSG\n1iOkHutoiOfAlCmoTk96WGfRuENXX1UZ7LTPPQvxtdey7TSUEJBhiQpA8Uo6\nTeDG5c4yK0CPSpPe3aMo9Z0tBBc1zsQVF5SmWYj1+pnF/bu6Q872rq36nkIa\nx2bpXg2k1ylD9GF9SXZTAt0G7rpieUrjvir0HJ/Ez5E0Mfv7b55dND5Sa6Ft\nUZYs2gxR0+L2LQG0Cfx6YDZO35cmRMZjRvuoZpktxQW5yleARQOR+Nm+/qKG\nUbht1TH/QxCBIWrI83sxfv5otJlARf1gO+lNL6eG/iRErgTnYfBTIixCwTjv\nmt6f\r\n=sw9S\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDwZFWFmWc85UKI4vjmX47XeRm9sn0wLeVTIFVZethPowIgDbbK807bk37KZJ8VfyMnj5tSZJdsRfggxSlvzgbWYQg="}],"size":5361,"noattachment":false,"key":"/parse-json-config/-/parse-json-config-0.4.1.tgz"},"maintainers":[{"name":"rem","email":"0x142857@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-json-config_0.4.1_1544691182113_0.591851030439277"},"_hasShrinkwrap":false,"publish_time":1544691182233,"_cnpm_publish_time":1544691182233},"0.4.0":{"name":"parse-json-config","version":"0.4.0","description":"Works like the way Babel parses its presets","repository":{"url":"git+https://github.com/egoist/parse-json-config.git","type":"git"},"main":"dist/index.js","scripts":{"test:cov":"jest --coverage && npm run lint","test":"jest && npm run lint","test:watch":"jest --watch","lint":"xo","build":"ncc build src/index.js --no-minify --no-source-map"},"author":{"name":"egoist","email":"0x142857@gmail.com"},"license":"MIT","jest":{"testEnvironment":"node"},"devDependencies":{"@test/prefix-stub":"file:./test/fixture/@test/prefix-stub","@test/stub":"file:./test/fixture/@test/stub","@zeit/ncc":"^0.5.5","eslint-config-rem":"^3.0.0","jest-cli":"^19.0.0","prefix-stub":"file:./test/fixture/prefix-stub","resolve-from":"^4.0.0","xo":"^0.18.0"},"xo":{"extends":"rem/prettier","envs":["jest"],"ignores":["fixture/**"]},"gitHead":"a5317a25d91e7d14a6653b5011ed8fbde4bbcbd4","bugs":{"url":"https://github.com/egoist/parse-json-config/issues"},"homepage":"https://github.com/egoist/parse-json-config#readme","_id":"parse-json-config@0.4.0","_npmVersion":"6.4.1","_nodeVersion":"10.11.0","_npmUser":{"name":"egoist","email":"0x142857@gmail.com"},"dist":{"integrity":"sha512-4lyykP1dgdQMSOxG+kvmqSzY7mcDnXYsevTLJfV6bfWQqi2tO4Kvbo9rCI/ylr+X4Pd79sW9JC34KhA4EWur5w==","shasum":"0a5d5b32f7075c79e138e36fa90e316b7e98bb46","tarball":"http://registry-npm.ywwl.com/parse-json-config/download/parse-json-config-0.4.0.tgz","fileCount":4,"unpackedSize":15621,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcEh3DCRA9TVsSAnZWagAAoaMP/1V9S+XAXzYX5kK+SGrW\nwxrikehjI3hfHOTYAmjtnRyP304Sbmqhv71VzBmar5DL1uX8Ob6b56GQtiOZ\nQhI/gIbrGntI+ws8I2XXmjygNnKFhNSIfAPrUsXv1u9zo7fhLpT0i0Mtj1gy\nxYW2RVxqh7Rbn2HSh2Y+vxTPzxZWnA8sojcmkJSHAksdCs1vV/5U/ZrX6ziz\nGcDQIGOlWT68zS/QQOoo4ZYAo8Onv9nNDuuLvjPKapYHChAorbsE7420OzmO\nqPPnu25G0uyh961oW2cQ6CCzttjC4+qc7GAPD3xIKXCyvaIOE/KpW2nqG1Ps\nJ1nRrC3jFCsRI/YDyl5tRvEhiZKM05YIxEoBOpKcMVy8eU5wEzsUnOtEnZZK\nzVyDh+UzGqsf+g3nvPLQs8abNICx8G6ziFN7jsOqYbrwAvrBLpoGn6VPkuaM\nlg2SaCASyqrLFuXy7/XvpDfdISUb4AFRlytqxqisEX9zgxbpwvNCImLaHVd3\nQyH7WUB/LG4q/ovlk07kKTtiq2vZNbR1Qlu6T1NoCVmzloSWqsic6mmPx/GW\nZI92HGT6UVXu+Htpj/rdOqWhvFcvm0/ccDQXPbFC70eNcr7zVievaU4IMjtm\n1n8RD9mmU4O1I1UKM8ngmT98/3tU8lSDXQX5vUtzcjrpfquPkPgFqqY3TqCs\n01NY\r\n=U4vk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCrTvN3wGdRCDh7DfV3Wt+Jv8bAXspdNNIsg04V+8k0YgIgZgd/WE9Jnzx8EEnZOn45Y/PI3xhsKwl2wl/9kRhmULQ="}],"size":5343,"noattachment":false,"key":"/parse-json-config/-/parse-json-config-0.4.0.tgz"},"maintainers":[{"name":"rem","email":"0x142857@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-json-config_0.4.0_1544691137463_0.32815375777687716"},"_hasShrinkwrap":false,"publish_time":1544691138640,"_cnpm_publish_time":1544691138640},"0.3.1":{"name":"parse-json-config","version":"0.3.1","description":"Works like the way Babel parses its presets","repository":{"url":"git+https://github.com/egoist/parse-json-config.git","type":"git"},"main":"index.js","files":["index.js"],"scripts":{"test:cov":"jest --coverage && npm run lint","test":"jest && npm run lint","test:watch":"jest --watch","lint":"xo"},"author":{"name":"egoist","email":"0x142857@gmail.com"},"license":"MIT","jest":{"testEnvironment":"node"},"dependencies":{"import-from":"^2.1.0"},"devDependencies":{"@test/stub":"file:./test/fixture/stub-scoped","eslint-config-rem":"^3.0.0","jest-cli":"^19.0.0","prefix-stub":"file:./test/fixture/stub-prefixed","xo":"^0.18.0"},"xo":{"extends":"rem/prettier","envs":["jest"],"ignores":["fixture/**"]},"gitHead":"1171095f6838194de7b08ae3a08bbef9ac354d94","bugs":{"url":"https://github.com/egoist/parse-json-config/issues"},"homepage":"https://github.com/egoist/parse-json-config#readme","_id":"parse-json-config@0.3.1","_npmVersion":"5.6.0","_nodeVersion":"9.11.0","_npmUser":{"name":"egoist","email":"0x142857@gmail.com"},"dist":{"integrity":"sha512-rGISNtn6EwJ7DFUUTNGcN83pclR5wlRruvbwT9TbQv7pzcehbQbBHo0AF+6R8bw2p9MC5Ab2Gk3DjjghPlj6Rg==","shasum":"5f91ae9ef753cd83e0cc102f00fb9b8517031f38","tarball":"http://registry-npm.ywwl.com/parse-json-config/download/parse-json-config-0.3.1.tgz","fileCount":4,"unpackedSize":8253,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbXdDVCRA9TVsSAnZWagAAaH0P/jzbvCR/jZXyoA0l5WfZ\n9g4FCCHcZRKo3m0rKoWOiFqlvINXWuRRjtkhp0ZTzoNRpCAMee7yHj9PQ2H8\nM+T7lpzsJv7puz5wm6gS2dwsgjSlhlZL0tRmFf3ekxoRtQS1jmm91MV94VE4\nwqu72cAnpcADFU1r4rnR8dzlrgd3HKAPZV4X7CW2Pvqc8gYM8wFcs1qYcQU/\n8xEFOIPik4XOXeVsFb7oKQ5SQaJS6Cb8NlWccMd+RyDbrR4XbRyfDTgMQf4J\n1DikCn0Z/zTShENXdzoGlgrNLSl94bLlUE/Bi2cHF2fyA+Z3U4whN/s2P0Ls\nJf2rXol9xeDewtWOKA3Bj83PCwWbMcrD/jF9nuegoSBOMIGkSxIZQatp+TGP\nTwVf/5atoEgrcQFunXk31CM9CG3fMXyCJDCFxYIoRkwcJWhnnxIo9cn/Xj9e\nDtyV3/hGmyPyKfSzNCEDzg4Uni3/BJo86v/8WMGuSkbM4OPl55BJUUxNx4hz\nFTYzgUS3DRauc3W8tytbcdwOe8uBuTokzwzzSHFwxGWlxn2PDDUyKTQAkKVi\nXvo7CjrTlZQdTgMFwOdBmjf/Ks5X0MeN6nNfVIMHu9VTXK+iAy8ZuKsb3ksi\n6d4wm4gRO2qpmjuRcJKadIqmGPy5Ejt5IWErdeu80R6cjNptPAsxvC7pgByR\ni9yZ\r\n=9MI/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDnEyj0SeNBbsmx40zoDzDQqz91QnlurFDiNLwNSQF15QIhALARuR37tGJlx4l8hyGllgLKDtrNXy3FFILia+r6r27e"}],"size":3468,"noattachment":false,"key":"/parse-json-config/-/parse-json-config-0.3.1.tgz"},"maintainers":[{"name":"rem","email":"0x142857@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-json-config_0.3.1_1532874964940_0.23218586843708167"},"_hasShrinkwrap":false,"publish_time":1532874965028,"_cnpm_publish_time":1532874965028},"0.3.0":{"name":"parse-json-config","version":"0.3.0","description":"Works like the way Babel parses its presets","repository":{"url":"git+https://github.com/egoist/parse-json-config.git","type":"git"},"main":"index.js","files":["index.js"],"scripts":{"test:cov":"jest --coverage && npm run lint","test":"jest && npm run lint","test:watch":"jest --watch","lint":"xo"},"author":{"name":"egoist","email":"0x142857@gmail.com"},"license":"MIT","jest":{"testEnvironment":"node"},"dependencies":{},"devDependencies":{"jest-cli":"^19.0.0","eslint-config-rem":"^3.0.0","xo":"^0.18.0","@test/stub":"file:./test/fixture/stub-scoped","prefix-stub":"file:./test/fixture/stub-prefixed"},"xo":{"extends":"rem/prettier","envs":["jest"],"ignores":["fixture/**"]},"gitHead":"b4c482e418fbe04f514ba6edcfcf5f12f1c09e24","bugs":{"url":"https://github.com/egoist/parse-json-config/issues"},"homepage":"https://github.com/egoist/parse-json-config#readme","_id":"parse-json-config@0.3.0","_npmVersion":"5.6.0","_nodeVersion":"9.11.0","_npmUser":{"name":"rem","email":"shinjisays@gmail.com"},"dist":{"integrity":"sha512-wdvdkV+7LIE2KfsJjJ4+4RgzAr2echqWBh/yGQUooQmSynEzdMm442mjRcH9pTVAO1QtYYbU2BQAbfktf7I5rg==","shasum":"d60d3ffed4eb2b60e4431f8368c9aaacc0dfbc4f","tarball":"http://registry-npm.ywwl.com/parse-json-config/download/parse-json-config-0.3.0.tgz","fileCount":4,"unpackedSize":8244,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbADXpCRA9TVsSAnZWagAARZ8P/iLUN8vD8kwioZSHYbCA\nyGLZ6USR5jkrb7xNnNZXtv/0x4bEg543HtJkUHnNLbhdmlMVU/jTXRPXOsbL\nEC/nKSrmDA7XInFAgLlnJH9o4SfGmcLfXIlnNhB2lq3q5hH/xu71MA1krriG\nj/NHiK7OqK7RCfSKQunWedh23l+OyacMVKA7dS9x9J1okm2zpNcXKFWPotXc\nBG8mdQV8F8DxHefQZJ6hAzUY7ej0PWbDcrVQK5AM2R6vADyHmVPZxC34dmKw\nZEu/YAH98W9tdgvjsIZPsoHVoQEnDTSFftq/yUY+ApGzRlrqtxR1wIKGwFAK\n0rVyLtDuhbt2K5z1tfD2M/7xoh7sDbHIt0ARD5MrYwwVPwNWYAPDw9yTHQ/W\nvHsRGd09L1ETkLgeSP9CdEqHBA9tAaLjJJtsqqq/KaO2HpU0t/0CQS6yq8XK\nksJphcSgmFe4ah+i67rtcS4HEIPK7+pBXKSnJMYqgn6rhdJJPomlARZEzDvF\n2jwAAy0np5OsHb/vEezE/gSTRSmcBzVFIT96R4/usu2GbR7EQxZpOpV39HkS\nHxYTOYCDytaP9GvN0J655HYh+fcUle/EvV8Jv1iB8fsFU3gdWZEhFVs4p5xd\njNAMSWzMItuxLtxcm4VLIv3+9Q9CGuhhZh8RFUD9yGsZfLlXgkQMGYHw3zC7\nVEOx\r\n=kLEp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBgcHgVcyYu9u9xwRbeWPjwyE/MYa2JrTdZQ+XxvP3ZJAiBqshtl84ZpC9W3O5+synSEJRGH7Sn+N8ApOJBsc0Ej/A=="}],"size":3465,"noattachment":false,"key":"/parse-json-config/-/parse-json-config-0.3.0.tgz"},"maintainers":[{"name":"rem","email":"0x142857@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-json-config_0.3.0_1526740456646_0.6063496375524933"},"_hasShrinkwrap":false,"publish_time":1526740456733,"_cnpm_publish_time":1526740456733},"0.2.2":{"name":"parse-json-config","version":"0.2.2","description":"Works like the way Babel parses its presets","repository":{"url":"git+https://github.com/egoist/parse-json-config.git","type":"git"},"main":"index.js","files":["index.js"],"scripts":{"test:cov":"jest --coverage && npm run lint","test":"jest && npm run lint","test:watch":"jest --watch","lint":"xo"},"author":{"name":"egoist","email":"0x142857@gmail.com"},"license":"MIT","jest":{"testEnvironment":"node"},"dependencies":{},"devDependencies":{"jest-cli":"^19.0.0","eslint-config-rem":"^3.0.0","xo":"^0.18.0","@test/stub":"file:./test/fixture/stub-scoped","prefix-stub":"file:./test/fixture/stub-prefixed"},"xo":{"extends":"rem/prettier","envs":["jest"],"ignores":["fixture/**"]},"gitHead":"c7d52447761c0ae5935e68019b85bc2d40cb9edc","bugs":{"url":"https://github.com/egoist/parse-json-config/issues"},"homepage":"https://github.com/egoist/parse-json-config#readme","_id":"parse-json-config@0.2.2","_npmVersion":"5.6.0","_nodeVersion":"9.11.0","_npmUser":{"name":"rem","email":"shinjisays@gmail.com"},"dist":{"integrity":"sha512-NmPSOfLkw59yKXoJ+NKGzj2mz4DYMHpva9GNzbpm86XTHSdNQKgPsLVuYddjS0+Gb6h6cFOVxdC8JKT24PfVJg==","shasum":"c42c64655a5d800a86dcf3259c5c6613f8366512","tarball":"http://registry-npm.ywwl.com/parse-json-config/download/parse-json-config-0.2.2.tgz","fileCount":4,"unpackedSize":8018,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbACwQCRA9TVsSAnZWagAAugMQAIRIsYhnMkPszyxeOgCY\nxXzu0oTUUjbawcpbF3P+6MEyqYDq7naFtGX49isbPoRuIbXRqeeTGB0C05CU\no0kF7iY6kb+qhOeu0VpdXiQgZN7axRw2W+SVqBV6wPg42odq0uZzk0JIddtQ\ngxkKulFoZ1RtCAl+iNUEfnRn6Qez9vmE8fGnRIllRDMjupd6hhgEoYwwDOsz\nA2mEkeRvD+NzAFFo3iisxmIiE7vCIHw/Q4QoCW9Luy4E8cyA07ZWUCoY2fwR\nGmH56gUwmaMrqyD09XEHvdw9axnXOhcmraLE12Jf4JOI4hsXqBFhFOdRvmSt\nTLiyvIrlFQ31QqP9xUrldwBK1Nam+NsdU2m3yN0Ds8JZBfQFmgoU2RW6QV1S\nXQrmWCZUjlGB9UYy+Vui1UQzkXLf9QEibOy+k+shozcAENbSvQj1QmBCpTjc\nN16Qt7AuuNm4lwiCfPfMqY6Be5azGSQjaqvtlZIXySsCGJtJtFlm7YaSL785\nM91DWORUAYOjC5KuVMgw0hvTzzJyb4ZqQGiNePoIMSWtqIzA/ASoyxaQ2z3J\nts2FfazMAXnase7qnfbHXWrM5/7wB4pabzFp/q53shtak6hNbkEe2omgDSn9\nxjriujXK7TI2WyM/Lqd+nDm1i9rSnuqCVm9eVdKw7PkFeenwBXd9XXLMvnx7\nnyOz\r\n=wMDt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCalyBJqNB5PmAhnRtHhb+bEjOFNsEWm1TwLgRp54MDSgIhAIv2+81MXXzRhKy75bglz12oqKSrHI0fkuXUJ1qRR/rd"}],"size":3393,"noattachment":false,"key":"/parse-json-config/-/parse-json-config-0.2.2.tgz"},"maintainers":[{"name":"rem","email":"0x142857@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-json-config_0.2.2_1526737935118_0.706562732526959"},"_hasShrinkwrap":false,"publish_time":1526737935256,"_cnpm_publish_time":1526737935256},"0.2.1":{"name":"parse-json-config","version":"0.2.1","description":"Works like the way Babel parses its presets","repository":{"url":"git+https://github.com/egoist/parse-json-config.git","type":"git"},"main":"index.js","files":["index.js"],"scripts":{"test:cov":"jest --coverage && npm run lint","test":"jest && npm run lint","test:watch":"jest --watch","lint":"xo"},"author":{"name":"egoist","email":"0x142857@gmail.com"},"license":"MIT","jest":{"testEnvironment":"node"},"dependencies":{},"devDependencies":{"jest-cli":"^19.0.0","eslint-config-rem":"^3.0.0","xo":"^0.18.0","@test/stub":"file:./test/fixture/stub-scoped","prefix-stub":"file:./test/fixture/stub-prefixed"},"xo":{"extends":"rem/prettier","envs":["jest"],"ignores":["fixture/**"]},"gitHead":"2fca50d779b25876335b0d24a4cd509062801c3a","bugs":{"url":"https://github.com/egoist/parse-json-config/issues"},"homepage":"https://github.com/egoist/parse-json-config#readme","_id":"parse-json-config@0.2.1","_npmVersion":"5.5.1","_nodeVersion":"8.6.0","_npmUser":{"name":"rem","email":"0x142857@gmail.com"},"dist":{"integrity":"sha512-y3fI061Qq2lWnT95n5ggBX4QtloGcM33MMNfE779jcRWN9CwV8Bk4Qd9nF7GY5gNItUtvB/iNWLIGFj5GP2PMA==","shasum":"8a71242d0cd259a0eb7a5e491cfc9f10156dd78f","tarball":"http://registry-npm.ywwl.com/parse-json-config/download/parse-json-config-0.2.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFdmGf0gypI4ktXp81osEnYEmwzHlrqEVTEVnivOfGGWAiEA1QzQW07sS0d5M3a2XhPczFNxhGJNqKVZeJ+VnOLQroE="}],"size":3301,"noattachment":false,"key":"/parse-json-config/-/parse-json-config-0.2.1.tgz"},"maintainers":[{"name":"rem","email":"0x142857@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-json-config-0.2.1.tgz_1510112979145_0.09034415194764733"},"directories":{},"publish_time":1510112979303,"_cnpm_publish_time":1510112979303},"0.2.0":{"name":"parse-json-config","version":"0.2.0","description":"Works like the way Babel parses its presets","repository":{"url":"git+https://github.com/egoist/parse-json-config.git","type":"git"},"main":"index.js","files":["index.js"],"scripts":{"test:cov":"jest --coverage && npm run lint","test":"jest && npm run lint","lint":"xo"},"author":{"name":"egoist","email":"0x142857@gmail.com"},"license":"MIT","jest":{"testEnvironment":"node"},"dependencies":{},"devDependencies":{"jest-cli":"^19.0.0","eslint-config-rem":"^3.0.0","xo":"^0.18.0"},"xo":{"extends":"rem/prettier","envs":["jest"],"ignores":["fixture/**"]},"gitHead":"a74d68956009f35bc1df5465b38c7217b9ec0ad5","bugs":{"url":"https://github.com/egoist/parse-json-config/issues"},"homepage":"https://github.com/egoist/parse-json-config#readme","_id":"parse-json-config@0.2.0","_shasum":"0bc6500a95bef0a3f1f64fbb17fa16f4ea9ffd39","_from":".","_npmVersion":"3.10.10","_nodeVersion":"7.6.0","_npmUser":{"name":"rem","email":"0x142857@gmail.com"},"dist":{"shasum":"0bc6500a95bef0a3f1f64fbb17fa16f4ea9ffd39","tarball":"http://registry-npm.ywwl.com/parse-json-config/download/parse-json-config-0.2.0.tgz","integrity":"sha512-2Y3mNd7d41XAGr63olFql0AqbqTW9VsnlFGU0c4EL4X2msF9ZMibunyEUHtXVTKzpTv2KDDpn214fBlQZSMYGg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDNDaodd2kJqUWrOfUDPpOBcYEj7nimtelDj7OYtllzvgIhAL/dQ+5MDb4guKoDgyzISX7zwU2PWrOk/d9vbaUn6Ro5"}],"size":3160,"noattachment":false,"key":"/parse-json-config/-/parse-json-config-0.2.0.tgz"},"maintainers":[{"name":"rem","email":"0x142857@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-json-config-0.2.0.tgz_1495860351192_0.9961520684882998"},"directories":{},"publish_time":1495860351313,"_cnpm_publish_time":1495860351313},"0.1.0":{"name":"parse-json-config","version":"0.1.0","description":"Works like the way Babel parses its presets","repository":{"url":"git+https://github.com/egoist/parse-json-config.git","type":"git"},"main":"index.js","files":["index.js"],"scripts":{"test:cov":"jest --coverage && npm run lint","test":"jest && npm run lint","lint":"xo"},"author":{"name":"egoist","email":"0x142857@gmail.com"},"license":"MIT","jest":{"testEnvironment":"node"},"dependencies":{},"devDependencies":{"jest-cli":"^19.0.0","eslint-config-rem":"^3.0.0","xo":"^0.18.0"},"xo":{"extends":"rem/prettier","envs":["jest"],"ignores":["fixture/**"]},"gitHead":"e7597b3c617c98c5dc2749c69ee4ffa152cd7db1","bugs":{"url":"https://github.com/egoist/parse-json-config/issues"},"homepage":"https://github.com/egoist/parse-json-config#readme","_id":"parse-json-config@0.1.0","_shasum":"91c823558fbcba351647f35f57cf52c252c843d7","_from":".","_npmVersion":"3.10.10","_nodeVersion":"7.6.0","_npmUser":{"name":"rem","email":"0x142857@gmail.com"},"dist":{"shasum":"91c823558fbcba351647f35f57cf52c252c843d7","tarball":"http://registry-npm.ywwl.com/parse-json-config/download/parse-json-config-0.1.0.tgz","integrity":"sha512-tRwKHgxL6y7w6kKQHOUiKH2T0iYY80ISeDsiuzb2TUm5DUFtTBNwnxzhov/yi1r5nxiWBJVC+5P74SF3MNvP4w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAk+jGgj3l4+A+gqrxwYylhT10lcQi9Dc1K2XsuBpLQcAiEA18V2HLCDLvjTAKwjeJfS8MlHlmPaDSpiN0yH7PwJCKM="}],"size":2778,"noattachment":false,"key":"/parse-json-config/-/parse-json-config-0.1.0.tgz"},"maintainers":[{"name":"rem","email":"0x142857@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-json-config-0.1.0.tgz_1495859030125_0.3270388727542013"},"directories":{},"publish_time":1495859030520,"_cnpm_publish_time":1495859030520}},"readme":"# parse-json-config\n\n[![NPM version](https://img.shields.io/npm/v/parse-json-config.svg?style=flat)](https://npmjs.com/package/parse-json-config) [![NPM downloads](https://img.shields.io/npm/dm/parse-json-config.svg?style=flat)](https://npmjs.com/package/parse-json-config) [![CircleCI](https://circleci.com/gh/egoist/parse-json-config/tree/master.svg?style=shield)](https://circleci.com/gh/egoist/parse-json-config/tree/master) [![codecov](https://codecov.io/gh/egoist/parse-json-config/branch/master/graph/badge.svg)](https://codecov.io/gh/egoist/parse-json-config)\n[![donate](https://img.shields.io/badge/$-donate-ff69b4.svg?maxAge=2592000&style=flat)](https://github.com/egoist/donate)\n\n## Install\n\n```bash\nyarn add parse-json-config\n```\n\n## Usage\n\n```js\nconst parse = require(\"parse-json-config\");\n\nparse([\"foo\", \"bar\"])[\n  //=> return\n  (require(\"$cwd/node_modules/foo\")(), require(\"$cwd/node_modules/bar\")())\n];\n```\n\n### Use options\n\nTo provide options while calling the function:\n\n```js\nparse([[\"foo\", options], \"bar\"])[\n  //=> return\n  (require(\"$cwd/node_modules/foo\")(options),\n  require(\"$cwd/node_modules/bar\")())\n];\n```\n\n### Local path or function\n\nYou can also use a local path or function:\n\n```js\nparse([\n  function() {\n    return \"foo\";\n  },\n  [\"./bar.js\", options]\n])[\n  //=> return\n  (function() {\n    return \"foo\";\n  },\n  require(\"$cwd/bar.js\")(options))\n];\n```\n\nIf you're using a non-string, we directly return it without calling it with the options even if you provide it as `[resolved, options]`, since if you can use a function / object as `resolved` you can already execute it yourself, but there's also a [isCalled](#iscalled) option for you to customize it.\n\nBy default relative path is resolve from `process.cwd()`\n\n### Custom caller\n\nEach item in the config is in `name` or `[name, options]` format, by default we directly call the `name` with `option` as the only argument, but you can use a custom caller:\n\n```js\nparse([\"./foo.js\"], {\n  caller: (resolved, options) => resolved(options, \"hi\")\n})[\n  //=> return\n  require(\"$cwd/foo.js\")(options, \"hi\")\n];\n```\n\nDefault caller is `(resolved, options) => typeof resolved === 'object' ? resolve.apply(options) : resolved(options)`\n\n### Prefix\n\nUse a prefix:\n\n```js\nparse([\n  'es2015',\n  'babel-preset-stage-2',\n  '@org/async',\n], { prefix: 'babel-preset-' })\n//=> return\n[\n  require('$cwd/node_modules/babel-preset-es2015')(),\n  require('$cwd/node_modules/babel-preset-stage-2')(),\n  require('$cwd/node_modules/@org/babel-preset-async')(),\n]\n```\n\nYou can also use `addPrefix` method to handle some edge cases:\n\n```js\nparse([\n  'es2015',\n  'babel-preset-stage-2',\n  '@org/async',\n  '@my/async',\n], {\n  prefix: 'babel-preset-',\n  addPrefix(input, prefix) {\n    if (input.startsWith('@my/')) {\n      return input.replace(/^@my\\/(preset-)?/, '@my/preset-')\n    }\n    return true\n  }\n})\n//=> return\n[\n  require('$cwd/node_modules/babel-preset-es2015')(),\n  require('$cwd/node_modules/babel-preset-stage-2')(),\n  require('$cwd/node_modules/@org/babel-preset-async')(),\n  require('$cwd/node_modules/@my/preset-async')(),\n]\n```\n\n### Pure object\n\n**Use pure object as config:**\n\nSimilar to using an array:\n\n```js\n[\n  [\"foo\", options],\n  [\n    \"./bar.js\",\n    {\n      isBar: true\n    }\n  ]\n];\n```\n\nis equivalent to:\n\n```js\n{\n  'foo': options,\n  './bar.js': {\n    isBar: true\n  }\n}\n```\n\n## API\n\n### parse(config, [options])\n\n#### options\n\n##### cwd\n\nType: `string`<br>\nDefault: `process.cwd()`\n\nThe path to resolve relative path and npm packages.\n\n##### caller\n\nType: `function`<br>\nDefault: `(resolved, options) => resolved(options)`\n\nThe caller defines what to do with `resolved` and `options`.\n\n##### prefix\n\nType: `string`<br>\nDefault: `undefined`\n\nPrefix for package name.\n\n##### addPrefix\n\nType: `(originalItem, prefix) => string | boolean`\n\nReturn a string as prefixed value, return `true` to use default `addPrefix` handler, return `false` to skip adding prefix.\n\n##### isResolved\n\nType: `originalItem => boolean`<br>\nDefault: `item => item && typeof item !== 'string'`\n\nCheck if the item is resolved, by default considering all non-string types as resolved.\n\n##### isCalled\n\nType: `(originalItem, resolvedItem) => boolean`<br>\nDefault: Same as `isResolved`.\n\nCheck if the item is called with options, by default considering all non-string types as called, but you can customize it:\n\n```js\nparse(\n  [\n    function foo() {\n      return \"foo\";\n    },\n    function bar() {\n      return \"bar\";\n    }\n  ],\n  {\n    // Only used when config item is provided as function\n    isCalled(fn) {\n      // Consider it's called when its name is foo\n      return fn.name === \"foo\";\n    }\n  }\n)[\n  //=> return\n  (function foo() {\n    return \"foo\";\n  },\n  \"bar\")\n];\n// function bar will be called as `bar(options)`\n```\n\n## Contributing\n\n1. Fork it!\n2. Create your feature branch: `git checkout -b my-new-feature`\n3. Commit your changes: `git commit -am 'Add some feature'`\n4. Push to the branch: `git push origin my-new-feature`\n5. Submit a pull request :D\n\n## Author\n\n**parse-json-config** © [egoist](https://github.com/egoist), Released under the [MIT](./LICENSE) License.<br>\nAuthored and maintained by egoist with help from contributors ([list](https://github.com/egoist/parse-json-config/contributors)).\n\n> [egoist.moe](https://egoist.moe) · GitHub [@egoist](https://github.com/egoist) · Twitter [@\\_egoistlily](https://twitter.com/_egoistlily)\n","_attachments":{},"homepage":"https://github.com/egoist/parse-json-config#readme","bugs":{"url":"https://github.com/egoist/parse-json-config/issues"},"license":"MIT"}