node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

browser-resolve-cli

Command line interface for node-browser-resolve

browser-resolve-cli

Provides a thin command line interface for node-browser-resolve, the module resolving algorithm used by browserify and friends.

Installation

Grab it via npm

# Install globally
npm install -g browser-resolve-cli
 
# Install locally
npm install browser-resolve-cli

Usage

❯ node cli.js --help
 
  Command line interface for node-browser-resolve
 
  Usage
   $ browser-resolve [options] <input>
 
  Options
   -b, --browser           Property to use from package.json for lookups, defaults to browser
   -d, --basedir           Directory to resolve from, defaults to CWD
   -e, --extensions        Extensions to search in order, repeat for mulitple paths
   -m, --module-directory  Directories to use for module lookups, defaults to node_modules, repeat for multiple directories
   -p, --paths             Paths to search if nothing is found in modules directory, repeat for multiple paths

Built by Mario Nebl and contributors and released under the MIT License.