Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore provide package-lock.json file Mar 27, 2019
LICENSE Initial commit Oct 29, 2014 cleanup some files and content Mar 27, 2019
index.js fix pattern to detect all syntax variations Mar 27, 2019
package-lock.json provide package-lock.json file Mar 27, 2019
package.json bump to 2.0.0-rc.1 Mar 27, 2019

Is Module

Check whether a source string looks like an ES6 module. This doesn't actually execute the code, and doesn't check other module types. So source strings without any module loaders returns false.

This is just what I need from, which actually executes the sauce string in a subcontext.


var isES6Module = require('is-module');

console.log(isES6Module('import * from "emitter";')) // => true
You can’t perform that action at this time.