Skip to content

About

Find dependencies between JavaScript modules in a project.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

js-module-dependencies

Find dependencies between JavaScript modules in a project.

Work-in-progress, currently supports import, export ... from.

Installation

npm install js-module-dependencies

Usage

var jsModuleDependecies = require('./index.js');

jsModuleDependecies.getModuleDependenciesInProject(
  '/Users/lev/tmp/react-dnd/src',
  console.log
);

Output:

{ DragDropContext:
   [ 'react',
     'dnd-core',
     'invariant',
     'utils/checkDecoratorArguments',
     'hoist-non-react-statics' ],
  DragLayer:
   [ 'react',
     'utils/shallowEqual',
     'utils/shallowEqualScalar',
     'lodash/isPlainObject',
     'invariant',
     'utils/checkDecoratorArguments',
     'hoist-non-react-statics' ],
...

About

Find dependencies between JavaScript modules in a project.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages