https://github.com/nodenv/nodenv-each
nodenv plugin to run a command across all installed nodes
https://github.com/nodenv/nodenv-each
Last synced: about 1 year ago
JSON representation
nodenv plugin to run a command across all installed nodes
- Host: GitHub
- URL: https://github.com/nodenv/nodenv-each
- Owner: nodenv
- License: mit
- Created: 2015-06-01T14:54:47.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2020-08-18T12:10:33.000Z (almost 6 years ago)
- Last Synced: 2024-11-06T16:52:49.329Z (over 1 year ago)
- Language: Shell
- Homepage:
- Size: 55.7 KB
- Stars: 4
- Watchers: 4
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nodenv-each
[](https://travis-ci.org/nodenv/nodenv-each)
Invoke commands for each nodenv Node version
- [Installation](#installation)
- [Usage](#usage)
* [Examples](#examples)
- [Credits](#credits)
## Installation
To install nodenv-each, clone this repository into your nodenv plugins directory.
```
$ mkdir -p "$(nodenv root)"/plugins
$ git clone https://github.com/nodenv/nodenv-each.git "$(nodenv root)"/plugins/nodenv-each
```
## Usage
```
$ nodenv help each
```
Verbose mode will print a header for each node so you can distinguish
the output.
**note**: Aliases ([nodenv-aliases][]) or symlinks are skipped.
### Examples
```
$ nodenv each npm install
$ nodenv each -v npm test
```
## Credits
Forked from [Chris Eppstein][chriseppstein]'s [rbenv-each][] by [Jason Karns][jasonkarns] and modified for [nodenv][].
[chriseppstein]: https://github.com/chriseppstein
[rbenv-each]: https://github.com/rbenv/rbenv-each
[jasonkarns]: https://github.com/jasonkarns
[nodenv]: https://github.com/nodenv/nodenv
[nodenv-aliases]: https://github.com/nodenv/nodenv-aliases