No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
Christian Ziermann b8da0c7023 Initial commit hace 4 años
..
index.d.ts Initial commit hace 4 años
index.js Initial commit hace 4 años
license Initial commit hace 4 años
package.json Initial commit hace 4 años
readme.md Initial commit hace 4 años

readme.md

is-installed-globally Build Status

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

const isInstalledGlobally = require('is-installed-globally');

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

// With `npm install --global your-package`
console.log(isInstalledGlobally);
//=> true
  • import-global - Import a globally installed module
  • resolve-global - Resolve the path of a globally installed module
  • global-dirs - Get the directory of globally installed packages and binaries