Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/bukinoshita/npm-global-list

Get all npm packages installed globally
https://github.com/bukinoshita/npm-global-list

global install module node npm package yarn

Last synced: 19 days ago
JSON representation

Get all npm packages installed globally

Awesome Lists containing this project

README

        

# npm-global-list [![Build Status](https://travis-ci.org/bukinoshita/npm-global-list.svg?branch=master)](https://travis-ci.org/bukinoshita/npm-global-list)

> Get all npm packages installed globally

## Install

```bash
$ yarn add npm-global-list
```

## Usage

```js
const npmGlobalList = require('npm-global-list')

npmGlobalList().then(pkgs => console.log(pkgs))
// => ['list', 'of', 'globally', 'installed', 'packages', ...]
```

## API

### npmGlobalList()

Returns a `promise`

## Related

- [npm-global-list-cli](https://github.com/bukinoshita/npm-global-list-cli) — CLI for this module

## License

MIT © [Bu Kinoshita](https://bukinoshita.io)