Big update!Announcing Socket for GitHub 1.0. Learn more
Socket
BlogLoveFAQ
Install
Log in

is-installed-globally

Package Overview
Dependencies
2
Maintainers
1
Versions
6
Issues
File Explorer

Advanced tools

is-installed-globally

Check if your package was installed globally

    0.4.0latest

Version published
Maintainers
1
Weekly downloads
11,527,418
decreased by-1.64%

Weekly downloads

Changelog

Source

Breaking

  • Require Node.js 10 4132e98

Improvements

  • Upgrade dependencies 4132e98

https://github.com/sindresorhus/is-installed-globally/compare/v0.3.2...v0.4.0

Readme

Source

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

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

Keywords

FAQs

What is is-installed-globally?

Check if your package was installed globally

Is is-installed-globally popular?

The npm package is-installed-globally receives a total of 11,034,757 weekly downloads. As such, is-installed-globally popularity was classified as popular.

Is is-installed-globally well maintained?

We found that is-installed-globally demonstrated a not healthy version release cadence and project activity. It has 1 open source maintainer collaborating on the project.

Last updated on 17 Jan 2021
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc