JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 158619
  • Score
    100M100P100Q164852F
  • License

Get the installation path of the given package if it is installed globally or locally.

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

npm standard style build status coverage status deps status

Get the installation path of the given package if it is installed globally or locally.

Install

npm i get-installed-path --save
npm test

Usage

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 true as second argument and it will check in local modules

Author

Charlike Mike Reagent

License MIT license

Copyright (c) 2015 Charlike Mike Reagent, contributors.
Released under the MIT license.


Proudly generated by docks(1), May 6, 2015