# npm-protect

> CLI utility to modify a package.json to use a private npm registry

Latest version **0.1.0** (published 2013-01-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install npm-protect
pnpm add npm-protect
yarn add npm-protect
bun add npm-protect
```

Provides the command `npm-protect`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2013-01-03 |
| First published | 2013-01-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | jden |
| Maintainers | jden |
| Keywords | npm, publish, private, registry |

## Links

- npm: https://www.npmjs.com/package/npm-protect
- Repository: https://github.com/jden/npm-protect
- npm.io page: https://npm.io/package/npm-protect

## Dependencies (3)

- [dotjson](https://npm.io/package/dotjson.md) ~0.1.3
- [heredoc](https://npm.io/package/heredoc.md) ~1.0.0
- [optimist](https://npm.io/package/optimist.md) ~0.3.5

## Recent versions

- 0.1.0 (latest) — 2013-01-03

## README

# npm-protect
CLI utility to modify a package.json to use a private npm registry

helpful for publishing lots of private packages

## usage

in a module's directory:

set module's registry to global default
    $ npm-protect

get module registry
    $ npm-protect -r, --registry

set module registry
    $ npm-protect -r, --registry <registry url>

get global registry
  $ npm-protect -g, --global

set global registry
  $ npm-protect -g, --global <registry url>


## behavior

when run without options, changes the current module's package.json by setting

    "license": "proprietary",
    "publishConfig": {
      "registry": "<global registry>"
    }

## license
MIT
(c) 2012 jden - Jason Denizac <jason@denizac.org>
http://jden.mit-license.org/2012

---
_Source: https://npm.io/package/npm-protect · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
