/resolve-module-directory

Resolves a module as a directory

Primary LanguageJavaScriptMIT LicenseMIT

resolve-module-directory

Resolves a module as a directory

Usage

var resolve = require(resolve-module-dir);
console.log(resolve('module-name')); // /path/to/module-name

CLI

$ resolve-dir module-name
> /path/to/module-name