Skip to content

Simple helper to list imports, exports and pass-throughs of ES6+ modules

Notifications You must be signed in to change notification settings

Massdrop/list-imports-exports

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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']]
}

About

Simple helper to list imports, exports and pass-throughs of ES6+ modules

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%