{"_id":"json2module","_rev":"376784","name":"json2module","description":"Convert a JSON object to an ES6 module.","dist-tags":{"latest":"0.0.3"},"maintainers":[{"name":"mbostock","email":"mike@ocks.org"}],"time":{"modified":"2021-07-30T05:41:55.000Z","created":"2016-03-14T16:45:08.450Z","0.0.3":"2016-03-14T18:47:24.658Z","0.0.2":"2016-03-14T18:20:52.271Z","0.0.1":"2016-03-14T16:45:08.450Z"},"users":{},"author":{"name":"Mike Bostock","url":"http://bost.ocks.org/mike"},"repository":{"type":"git","url":"git+https://github.com/mbostock/json2module.git"},"versions":{"0.0.3":{"name":"json2module","version":"0.0.3","description":"Convert a JSON object to an ES6 module.","keywords":["json","es6","module"],"homepage":"https://github.com/mbostock/json2module","license":"BSD-3-Clause","author":{"name":"Mike Bostock","url":"http://bost.ocks.org/mike"},"repository":{"type":"git","url":"git+https://github.com/mbostock/json2module.git"},"bin":{"json2module":"./bin/json2module"},"scripts":{"postpublish":"git push && git push --tags"},"dependencies":{"rw":"^1.3.2"},"gitHead":"7b32c35891c726e8d9453264bff9e40459d938bb","bugs":{"url":"https://github.com/mbostock/json2module/issues"},"_id":"json2module@0.0.3","_shasum":"00fb5f4a9b7adfc3f0647c29cb17bcd1979be9b2","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.7.0","_npmUser":{"name":"mbostock","email":"mbostock@gmail.com"},"maintainers":[{"name":"mbostock","email":"mike@ocks.org"}],"dist":{"shasum":"00fb5f4a9b7adfc3f0647c29cb17bcd1979be9b2","size":6195,"noattachment":false,"key":"/json2module/-/json2module-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/json2module/download/json2module-0.0.3.tgz"},"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/json2module-0.0.3.tgz_1457981244128_0.6829835993703455"},"directories":{},"publish_time":1457981244658,"_cnpm_publish_time":1457981244658,"_hasShrinkwrap":false},"0.0.2":{"name":"json2module","version":"0.0.2","description":"Convert a JSON object to an ES6 module.","keywords":["json","es6","module"],"homepage":"https://github.com/mbostock/json2module","license":"BSD-3-Clause","author":{"name":"Mike Bostock","url":"http://bost.ocks.org/mike"},"repository":{"type":"git","url":"git+https://github.com/mbostock/json2module.git"},"bin":{"json2module":"./bin/json2module"},"scripts":{"postpublish":"git push && git push --tags"},"dependencies":{"rw":"^1.3.0"},"gitHead":"7094d6df614e21ea599a6f690860c4b94641089f","bugs":{"url":"https://github.com/mbostock/json2module/issues"},"_id":"json2module@0.0.2","_shasum":"9cb5e1931147e59e2e9a8e4f3309e50007107399","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.7.0","_npmUser":{"name":"mbostock","email":"mbostock@gmail.com"},"maintainers":[{"name":"mbostock","email":"mike@ocks.org"}],"dist":{"shasum":"9cb5e1931147e59e2e9a8e4f3309e50007107399","size":6193,"noattachment":false,"key":"/json2module/-/json2module-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/json2module/download/json2module-0.0.2.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/json2module-0.0.2.tgz_1457979651793_0.8334206191357225"},"directories":{},"publish_time":1457979652271,"_cnpm_publish_time":1457979652271,"_hasShrinkwrap":false},"0.0.1":{"name":"json2module","version":"0.0.1","description":"Convert a JSON object to an ES6 module.","keywords":["json","es6","module"],"homepage":"https://github.com/mbostock/json2module","license":"BSD-3-Clause","author":{"name":"Mike Bostock","url":"http://bost.ocks.org/mike"},"bin":{"json2module":"./bin/json2module"},"dependencies":{"rw":"^1.1.1"},"gitHead":"6b494b846cbbc281adb59105883eac079e5c8474","_id":"json2module@0.0.1","scripts":{},"_shasum":"103a3ca68345256c334b8c814e9166d3fad30f4e","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.7.0","_npmUser":{"name":"mbostock","email":"mbostock@gmail.com"},"maintainers":[{"name":"mbostock","email":"mike@ocks.org"}],"dist":{"shasum":"103a3ca68345256c334b8c814e9166d3fad30f4e","size":6128,"noattachment":false,"key":"/json2module/-/json2module-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/json2module/download/json2module-0.0.1.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/json2module-0.0.1.tgz_1457973907952_0.8081133970990777"},"directories":{},"publish_time":1457973908450,"_cnpm_publish_time":1457973908450,"_hasShrinkwrap":false}},"readme":"# json2module\n\nConvert a JSON object into an ES6 module. For example, given a package.json file:\n\n```json\n{\n  \"name\": \"hello-world\",\n  \"version\": \"0.0.1\"\n}\n```\n\nIf you run this through json2module like so:\n\n```json\njson2module < package.json\n```\n\nYou’ll get the following ES6 module as output:\n\n```js\nexport var name = \"hello-world\";\nexport var version = \"0.0.1\";\n```\n\nThis is particularly useful for exporting a version number defined in your package.json file when using [Rollup](http://rollupjs.org/). Unlike [rollup-plugin-json](https://github.com/rollup/rollup-plugin-json), which enables Rollup to parse JSON directly, json2module creates standard ES6 modules that can be consumed by any client.\n","_attachments":{},"homepage":"https://github.com/mbostock/json2module","bugs":{"url":"https://github.com/mbostock/json2module/issues"},"license":"BSD-3-Clause"}