list-imports-exports
v0.1.2
Published
Lists some simple ES6 import/export stats
Downloads
390
Maintainers
Readme
list-imports-exports
Just lists some simple stats about es6 module imports and exports. Powered by babylon and babel-traverse.
Also specifically lists "passthroughs", such as export a from './a'
.
Usage example
> require('list-imports-exports').parse('export a, {b as c} from "./a";');
{
imports: ['./a'],
exports: ['a', 'c'],
passthroughs: [['a', './a', 'default'], ['c', './b', 'b']]
}