Socket
Book a DemoInstallSign in
Socket

backtrack-require

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

backtrack-require

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

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

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.

Keywords

recursive

FAQs

Package last updated on 27 Jun 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts