browser-resolve-cli

1.0.0 • Public • Published

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.

Package Sidebar

Install

npm i browser-resolve-cli

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • marionebl