list-imports-exports

Lists some simple ES6 import/export stats

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
list-imports-exports
100.1.25 years ago7 years agoMinified + gzip package size for list-imports-exports in KB

Readme

list-imports-exports
npm version
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']]
}