{"_id":"is-module","_rev":"143621","name":"is-module","description":"check if a source string is an es6 module","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"anthonyshort","email":"antshort@gmail.com"},{"name":"clintwood","email":"clint@anotherway.co.za"},{"name":"dominicbarnes","email":"dominic@dbarnes.info"},{"name":"hughsk","email":"hughskennedy@gmail.com"},{"name":"ianstormtaylor","email":""},{"name":"jonathanong","email":""},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"stephenmathieson","email":"me@stephenmathieson.com"},{"name":"thehydroimpulse","email":"dnfagnan@gmail.com"},{"name":"timaschew","email":""},{"name":"tootallnate","email":"nathan@tootallnate.net"},{"name":"trevorgerhardt","email":"trevorgerhardt@gmail.com"},{"name":"yields","email":"yields@icloud.com"}],"time":{"modified":"2021-06-03T11:28:28.000Z","created":"2014-04-01T00:58:29.191Z","1.0.0":"2014-04-01T00:58:29.191Z"},"users":{},"author":{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"},"repository":{"type":"git","url":"git://github.com/component/is-module"},"versions":{"1.0.0":{"name":"is-module","description":"check if a source string is an es6 module","keywords":["es6","module","modules"],"version":"1.0.0","author":{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"},"license":"MIT","repository":{"type":"git","url":"git://github.com/component/is-module"},"devDependencies":{"mocha":"*"},"scripts":{"test":"mocha --reporter spec --bail"},"bugs":{"url":"https://github.com/component/is-module/issues"},"homepage":"https://github.com/component/is-module","_id":"is-module@1.0.0","dist":{"shasum":"3258fb69f78c14d5b815d664336b4cffb6441591","size":1736,"noattachment":false,"key":"/is-module/-/is-module-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-module/download/is-module-1.0.0.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},"maintainers":[{"name":"anthonyshort","email":"antshort@gmail.com"},{"name":"clintwood","email":"clint@anotherway.co.za"},{"name":"dominicbarnes","email":"dominic@dbarnes.info"},{"name":"hughsk","email":"hughskennedy@gmail.com"},{"name":"ianstormtaylor","email":""},{"name":"jonathanong","email":""},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"stephenmathieson","email":"me@stephenmathieson.com"},{"name":"thehydroimpulse","email":"dnfagnan@gmail.com"},{"name":"timaschew","email":""},{"name":"tootallnate","email":"nathan@tootallnate.net"},{"name":"trevorgerhardt","email":"trevorgerhardt@gmail.com"},{"name":"yields","email":"yields@icloud.com"}],"directories":{},"publish_time":1396313909191,"_cnpm_publish_time":1396313909191,"_hasShrinkwrap":false}},"readme":"# Is Module\n\nCheck whether a source string looks like an ES6 module.\nThis doesn't actually execute the code,\nand doesn't check other module types.\nSo source strings without any module loaders returns `false`.\n\nThis is just what I need from https://github.com/yahoo/js-module-formats, which actually executes the sauce string in a subcontext.\n\n## API\n\n```js\nvar isES6Module = require('is-module');\n\nconsole.log(isES6Module('import * from \"emitter\";')) // => true\n```\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2014 segmentio &lt;team@segment.io&gt;\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_attachments":{},"homepage":"https://github.com/component/is-module","bugs":{"url":"https://github.com/component/is-module/issues"},"license":"MIT"}