Package Exports
- get-installed-path
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (get-installed-path) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Get the installation path of the given package if it is installed globally or locally.
Install
npm i get-installed-path --save
npm testUsage
For more use-cases see the tests
var getInstalledPath = require('get-installed-path')
getInstalledPath('npm')
//=> '/home/charlike/path/to/global/modules/node_modules/npm'
getInstalledPath('detect-installed', true)
//=> '/home/path/to/cwd/node_modules/detect-installed'give
trueas second argument and it will check in local modules
Related
- detect-installed: Checks that given package name is installed locally (in current… more
- is-installed: Checks that given package is installed on the system -… more
- is-missing: Check that given
nameoruser/repoexists in npm registry… more - is-match: Create a matching function from a glob pattern, regex, string,… more
- npm-related: Thin wrapper on top of
helper-relatedfor generating a list… more - npm-pkgs-filter: Filter the list of user npm packages from the npmjs.com… more
Author
Charlike Mike Reagent
License 
Copyright (c) 2015 Charlike Mike Reagent, contributors.
Released under the MIT license.
Proudly generated by docks(1), May 6, 2015