README.md

require-analyzer

Determine dependencies for a given node.js file, directory tree, or module in code or on the command line

Status

Installation

Installing npm (node package manager)

curl http://npmjs.org/install.sh | sh

Installing require-analyzer

[sudo] npm install require-analyzer

NOTE: If you're using npm >= 1.0 then you need to add the -g parameter to install require-analyzer globally.

Usage

There are two distinct ways to use the require-analyzer library: from the command line or through code. The command line tool is designed to work with package.json files so make sure that you have created one for your project first. Checkout jitsu for a quick and easy way to create a package.json.

Command-line usage

Using require-analyzer from the command line is easy. The binary will attempt to read the package.json file in the current directory, then analyze the dependencies and cross reference the result.

$ require-analyzer --help
usage: require-analyzer [options] [directory]
Analyzes the node.js requirements for the target directory. If no directory
is supplied then the current directory is used
options:
--update Update versions for existing dependencies
-h, --help You're staring at it