Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

ismodule

0.1.1 • Public • Published

isModule Build Status

Test if a string is an es6 module.

npm install --save ismodule;

var isModule = require('ismodule');
 
isModule('export default 9'); //true
isModule('let b = "export default 9"'); //false

Keywords

none

install

npm i ismodule

Downloadsweekly downloads

10

version

0.1.1

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability