source: frontend/node_modules/is-module/README.md

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 1.5 KB
Line 
1# Is Module
2
3Check whether a source string looks like an ES6 module.
4This doesn't actually execute the code,
5and doesn't check other module types.
6So source strings without any module loaders returns `false`.
7
8This is just what I need from https://github.com/yahoo/js-module-formats, which actually executes the sauce string in a subcontext.
9
10## API
11
12```js
13var isES6Module = require('is-module');
14
15console.log(isES6Module('import * from "emitter";')) // => true
16```
17
18## License
19
20(The MIT License)
21
22Copyright (c) 2014 segmentio &lt;team@segment.io&gt;
23
24Permission is hereby granted, free of charge, to any person obtaining
25a copy of this software and associated documentation files (the
26'Software'), to deal in the Software without restriction, including
27without limitation the rights to use, copy, modify, merge, publish,
28distribute, sublicense, and/or sell copies of the Software, and to
29permit persons to whom the Software is furnished to do so, subject to
30the following conditions:
31
32The above copyright notice and this permission notice shall be
33included in all copies or substantial portions of the Software.
34
35THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
36EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
37MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
38IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
39CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
40TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
41SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Note: See TracBrowser for help on using the repository browser.