{"_id":"interop-require","_rev":"3-ecf1d27454a82f694f9f95eb2a0f7df1","name":"interop-require","description":"Require babel's ES6 modules from node.","dist-tags":{"latest":"1.0.0"},"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":"https://registry.npmjs.org/interop-require/-/interop-require-1.0.0.tgz","integrity":"sha512-5uH5BrSPRHb0O/DbocyMKzDzJu0fttWvkeORtQmUOZ4PWJ5b+bTWGgf/O8qQsQGO1cOltOvAAc5iVJVoy5z0Fw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCG0VsRmKVh6F2Uczu0QL1g/+nSodo4UzJaTEx/tb0u5gIgF8yM1IBhgVx7XIb7c15MySmfgB4vmpQxiiuen1vODUY="}]},"maintainers":[{"name":"izaakschroeder","email":"izaak.schroeder@gmail.com"}]}},"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","maintainers":[{"name":"izaakschroeder","email":"izaak.schroeder@gmail.com"}],"time":{"modified":"2022-06-19T01:47:15.211Z","created":"2015-11-02T10:22:13.322Z","1.0.0":"2015-11-02T10:22:13.322Z"},"homepage":"https://github.com/izaakschroeder/interop-require#readme","repository":{"type":"git","url":"git+https://github.com/izaakschroeder/interop-require.git"},"author":{"name":"Izaak Schroeder","email":"izaak.schroeder@gmail.com"},"bugs":{"url":"https://github.com/izaakschroeder/interop-require/issues"},"license":"CC0-1.0","readmeFilename":"README.md"}