1.0.0 • Published 8 years ago

browser-resolve-cli v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

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.