Skip to content
No description, website, or topics provided.
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test
.gitignore provide package-lock.json file Mar 27, 2019
LICENSE Initial commit Oct 29, 2014
README.md 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

README.md

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 https://github.com/yahoo/js-module-formats, which actually executes the sauce string in a subcontext.

API

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

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