{"_id":"interop-require","_rev":"108649","name":"interop-require","description":"Require babel's ES6 modules from node.","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"izaakschroeder","email":"izaak.schroeder@gmail.com"}],"time":{"modified":"2024-06-10T13:17:08.000Z","created":"2015-11-02T10:22:13.322Z","1.0.0":"2015-11-02T10:22:13.322Z"},"users":{},"author":{"name":"Izaak Schroeder","email":"izaak.schroeder@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/izaakschroeder/interop-require.git"},"versions":{"1.0.0":{"name":"interop-require","version":"1.0.0","description":"Require babel's ES6 modules from node.","author":{"name":"Izaak Schroeder","email":"izaak.schroeder@gmail.com"},"license":"CC0-1.0","repository":{"type":"git","url":"git+https://github.com/izaakschroeder/interop-require.git"},"gitHead":"50c8fcbd64535eacb4d086bac2cfff3be3b17ca3","bugs":{"url":"https://github.com/izaakschroeder/interop-require/issues"},"homepage":"https://github.com/izaakschroeder/interop-require#readme","_id":"interop-require@1.0.0","scripts":{},"_shasum":"e53103679944c88d7e6105b62a9f4475c783971e","_from":".","_npmVersion":"3.3.5","_nodeVersion":"4.1.0","_npmUser":{"name":"izaakschroeder","email":"izaak.schroeder@gmail.com"},"dist":{"shasum":"e53103679944c88d7e6105b62a9f4475c783971e","tarball":"http://registry-npm.ywwl.com/interop-require/download/interop-require-1.0.0.tgz","integrity":"sha512-5uH5BrSPRHb0O/DbocyMKzDzJu0fttWvkeORtQmUOZ4PWJ5b+bTWGgf/O8qQsQGO1cOltOvAAc5iVJVoy5z0Fw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCG0VsRmKVh6F2Uczu0QL1g/+nSodo4UzJaTEx/tb0u5gIgF8yM1IBhgVx7XIb7c15MySmfgB4vmpQxiiuen1vODUY="}],"size":735,"noattachment":false,"key":"/interop-require/-/interop-require-1.0.0.tgz"},"maintainers":[{"name":"izaakschroeder","email":"izaak.schroeder@gmail.com"}],"directories":{},"publish_time":1446459733322,"_cnpm_publish_time":1446459733322}},"readme":"# interop-require\n\nRequire babel's ES6 modules from node.\n\nWith the release of [babel]`@6` the way generated modules work now does NOT set the `module.exports` property; instead it sets `exports.default`. Of course this basically breaks everything trying to `require()` it. So this tiny module is a replacement for `require()` for node-based runtimes that imports the default if an ES6 module is detected. A necessary evil it seems, given this behavior is not changing: https://github.com/babel/babel/issues/2212.\n\n[babel]: https://github.com/babel/babel\n","_attachments":{},"homepage":"https://github.com/izaakschroeder/interop-require#readme","bugs":{"url":"https://github.com/izaakschroeder/interop-require/issues"},"license":"CC0-1.0"}