ssap_app/node_modules/resolve-global
ananyak19 f0453fc9f0 first commit 2026-01-18 17:57:34 +05:30
..
index.d.ts first commit 2026-01-18 17:57:34 +05:30
index.js first commit 2026-01-18 17:57:34 +05:30
license first commit 2026-01-18 17:57:34 +05:30
package.json first commit 2026-01-18 17:57:34 +05:30
readme.md first commit 2026-01-18 17:57:34 +05:30

readme.md

resolve-global Build Status

Resolve the path of a globally installed module

Install

$ npm install resolve-global

Usage

$ npm install --global cat-names
const resolveGlobal = require('resolve-global');

console.log(resolveGlobal('cat-names'));
//=> '/usr/local/lib/node_modules/cat-names'

API

resolveGlobal(moduleId)

Throws if the module can't be found.

resolveGlobal.silent(moduleId)

Returns undefined instead of throwing if the module can't be found.

moduleId

Type: string

What you would use in require().

License

MIT © Sindre Sorhus