is-global-install

Checks if a package was installed globally in Node.

Usage no npm install needed!

<script type="module">
  import isGlobalInstall from 'https://cdn.skypack.dev/is-global-install';
</script>

README

is-global-install

Checks if a package was installed globally in Node.

GitHub | NPM

Install

npm i is-global-install

Usage

const isGlobalInstall = require('is-global-install')()

console.log(isGlobalInstall)

// => If installed globally, true