Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/recuencojones/npmrc
npmrc manager
https://github.com/recuencojones/npmrc
cli npmrc npmrc-files profile-manager travis-ci
Last synced: 23 days ago
JSON representation
npmrc manager
- Host: GitHub
- URL: https://github.com/recuencojones/npmrc
- Owner: RecuencoJones
- License: mit
- Created: 2018-08-14T13:18:47.000Z (over 6 years ago)
- Default Branch: develop
- Last Pushed: 2020-03-03T16:10:01.000Z (almost 5 years ago)
- Last Synced: 2024-11-07T11:53:18.648Z (2 months 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.svg?branch=develop)](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
```
npmrcAvailable 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)