Skip to content

mikefarquhar/list-deps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

list-deps

Naive CLI/method to list dependencies referenced in source files.

Install:

# Install for CLI use:
npm i -g @mike_f/list-deps

# Install for node use:
npm i -D @mike_f/list-deps

# CLI example looking in JS and JSX files.
list-deps ./path/to/root.js --extensions js jsx

Usage in JavaScript:

const listDeps = require('@mike_f/list-deps');
const { skippedModules, dependencies } = listDeps('./path/to/root.js', ['js', 'jsx']);

About

List JS dependencies within a project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published