Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jonschlinkert/global-module-exists

Returns true if a npm package exists in global node_modules.
https://github.com/jonschlinkert/global-module-exists

exists global installed npm package

Last synced: 15 days ago
JSON representation

Returns true if a npm package exists in global node_modules.

Awesome Lists containing this project

README

        

# global-module-exists [![NPM version](https://img.shields.io/npm/v/global-module-exists.svg?style=flat)](https://www.npmjs.com/package/global-module-exists) [![NPM monthly downloads](https://img.shields.io/npm/dm/global-module-exists.svg?style=flat)](https://npmjs.org/package/global-module-exists) [![NPM total downloads](https://img.shields.io/npm/dt/global-module-exists.svg?style=flat)](https://npmjs.org/package/global-module-exists) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/global-module-exists.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/global-module-exists)

> Returns true if a npm package exists in global node_modules.

## Install

Install with [npm](https://www.npmjs.com/):

```sh
$ npm install --save global-module-exists
```

## Usage

```js
var exists = require('global-module-exists');
console.log(exists('generate'));
//=> true
```

## About

### Related projects

* [global-modules](https://www.npmjs.com/package/global-modules): The directory used by npm for globally installed npm modules. | [homepage](https://github.com/jonschlinkert/global-modules "The directory used by npm for globally installed npm modules.")
* [global-paths](https://www.npmjs.com/package/global-paths): Returns an array of unique "global" directories based on the user's platform and environment. The… [more](https://github.com/jonschlinkert/global-paths) | [homepage](https://github.com/jonschlinkert/global-paths "Returns an array of unique "global" directories based on the user's platform and environment. The resulting paths can be used for doing lookups for generators or other globally installed npm packages. Node.js / JavaScript.")
* [npm-prefix](https://www.npmjs.com/package/npm-prefix): Get global npm prefix. Respects npmrc configs | [homepage](https://github.com/eush77/npm-prefix "Get global npm prefix. Respects npmrc configs")

### Contributing

Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).

Please read the [contributing guide](.github/contributing.md) for advice on opening issues, pull requests, and coding standards.

### Building docs

_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_

To generate the readme, run the following command:

```sh
$ npm install -g verbose/verb#dev verb-generate-readme && verb
```

### Running tests

Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:

```sh
$ npm install && npm test
```

### Author

**Jon Schlinkert**

* [github/jonschlinkert](https://github.com/jonschlinkert)
* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)

### License

Copyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).
Released under the [MIT License](LICENSE).

***

_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on June 02, 2017._