🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

is-installed-globally

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-installed-globally

Check if your package was installed globally

1.0.0
latest
Source
npm
Version published
Weekly downloads
14M
1.84%
Maintainers
1
Weekly downloads
 
Created

What is is-installed-globally?

The `is-installed-globally` package is a simple utility that allows developers to check if a given npm package is installed globally on the system. This can be particularly useful for CLI tools or libraries that need to adjust their behavior based on whether they're running in a global context.

What are is-installed-globally's main functionalities?

Check if a package is installed globally

This feature allows developers to programmatically determine if the current package is installed globally. It returns a boolean value: `true` if the package is installed globally, and `false` otherwise. This can be useful for CLI applications that may have different behaviors or configurations when installed globally versus locally.

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

console.log(isInstalledGlobally); // true or false

Other packages similar to is-installed-globally

Keywords

global

FAQs

Package last updated on 06 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts