is-installed-globally

WebJar for is-installed-globally

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

is-installed-globally
Last Version

Last Version

0.3.2
Release Date

Release Date

Type

Type

jar
Description

Description

is-installed-globally
WebJar for is-installed-globally
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/sindresorhus/is-installed-globally

Download is-installed-globally

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/is-installed-globally/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>is-installed-globally</artifactId>
    <version>0.3.2</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/is-installed-globally/
implementation 'org.webjars.npm:is-installed-globally:0.3.2'
// https://jarcasting.com/artifacts/org.webjars.npm/is-installed-globally/
implementation ("org.webjars.npm:is-installed-globally:0.3.2")
'org.webjars.npm:is-installed-globally:jar:0.3.2'
<dependency org="org.webjars.npm" name="is-installed-globally" rev="0.3.2">
  <artifact name="is-installed-globally" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='is-installed-globally', version='0.3.2')
)
libraryDependencies += "org.webjars.npm" % "is-installed-globally" % "0.3.2"
[org.webjars.npm/is-installed-globally "0.3.2"]

Dependencies

compile (2)

Group / Artifact Type Version
org.webjars.npm : global-dirs jar [2.0.1,3)
org.webjars.npm : is-path-inside jar [3.0.1,4)

Project Modules

There are no modules declared in this project.

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

Related

  • 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

Versions

Version
0.3.2
0.1.0