is-installed-globally
Check if your package was installed globally
Last updated 7 years ago by sindresorhus .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install is-installed-globally 
SYNC missed versions from official npm registry.

is-installed-globally

Check if your package was installed globally

Can be useful if your CLI needs different behavior when installed globally and locally.

Install

npm install is-installed-globally

Usage

import isInstalledGlobally from 'is-installed-globally';

// With `npm install your-package`
console.log(isInstalledGlobally);
//=> false

// With `npm install --global your-package`
console.log(isInstalledGlobally);
//=> true

Related

Current Tags

  • 1.0.1                                ...           latest (2 months ago)

8 Versions

  • 1.0.1                                ...           2 months ago
  • 1.0.0                                ...           3 years ago
  • 0.4.0                                ...           6 years ago
  • 0.3.2                                ...           7 years ago
  • 0.3.1                                ...           7 years ago
  • 0.3.0                                ...           7 years ago
  • 0.2.0                                ...           8 years ago
  • 0.1.0                                ...           9 years ago
Maintainers (1)
Downloads
Total 49
Today 0
This Week 6
This Month 17
Last Day 1
Last Week 0
Last Month 8
Dependencies (2)
Dev Dependencies (7)

© 2010 - cnpmjs.org x YWFE | Home | YWFE