Skip to content

hughsk/backtrack-require

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

backtrack-require experimental

Given an entry file and a target file, track down any files that are requiring the target file.

NPM

CLI Usage

Usage: backtrack-require <entry> <target>

Find every file that is requiring `target`, given an
`entry` file.

For example:

$ backtrack-require fixtures/a.js fixtures/c.js
fixtures/b.js
fixtures/d.js

Module Usage

backtrack(entry, target, done(err, results))

Given an entry and a target file, call the done callback with an array of files that are requiring target.

License

MIT. See LICENSE.md for details.

About

Given an entry file and a target file, track down any files that are requiring the target file

Resources

License

Stars

Watchers

Forks

Packages

No packages published