Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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

```
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)