https://github.com/recuencojones/npmrc
npmrc manager
https://github.com/recuencojones/npmrc
cli npmrc npmrc-files profile-manager travis-ci
Last synced: 8 months ago
JSON representation
npmrc manager
- Host: GitHub
- URL: https://github.com/recuencojones/npmrc
- Owner: RecuencoJones
- License: mit
- Created: 2018-08-14T13:18:47.000Z (almost 8 years ago)
- Default Branch: develop
- Last Pushed: 2020-03-03T16:10:01.000Z (over 6 years ago)
- Last Synced: 2024-12-28T05:42:00.917Z (over 1 year ago)
- Topics: cli, npmrc, npmrc-files, profile-manager, travis-ci
- Language: Go
- Size: 18.6 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.com/RecuencoJones/npmrc)
# npmrc
A CLI to manage multiple npmrc files
## Install
### from brew
```
brew tap RecuencoJones/tap
brew install npmrc
```
Later you can upgrade with
```
brew upgrade npmrc
```
### from releases
- Download the file for your distribution
- Extract it to get `npmrc`
- Make it available in your path
### from source
```
git clone https://github.com/RecuencoJones/npmrc
cd npmrc
go get -t ./...
go install ./...
```
## Usage
```
npmrc
Available commands:
use, u Select a profile
view, v View a profile
list, ls List available profiles
edit, ed Create or update profiles
copy, cp Copy profiles
remove, rm Remove a profile
help, h Display this message
version Display version
```
## Configuration
| Env variable | Default value | Description |
| --- | --- | --- |
| NPMRC_DIR | `~` | Directory where profiles will be stored |
| EDITOR | `vi` | Editor to use for creating/editing profiles |
| VIEWER | `cat` | Viewer to use for viewing profiles |
## Profile name rules
- Profile name must not start with `.`
- Profile name must not contain spaces
- Profile name must be of at least 1 character length
[Check regex at regexr.com](https://regexr.com/3u5rg)