node package manager
Loosely couple your services. Use Orgs to version and reuse your code. Create a free org »

ismodule

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