# ip-manager

> manage your hosts

Latest version **0.7.1** (published 2016-10-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install ip-manager
pnpm add ip-manager
yarn add ip-manager
bun add ip-manager
```

Provides the command `ip-manager`.

## 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.7.1 |
| Published | 2016-10-30 |
| First published | 2016-10-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | xhinliang |
| Maintainers | xhinliang |
| Keywords | ip |

## Links

- npm: https://www.npmjs.com/package/ip-manager
- Repository: https://github.com/XhinLiang/ip-manager
- Homepage: https://github.com/XhinLiang/ip-manager#readme
- Issues: https://github.com/XhinLiang/ip-manager/issues
- npm.io page: https://npm.io/package/ip-manager

## Dependencies (4)

- [colors](https://npm.io/package/colors.md) ^1.1.2
- [request](https://npm.io/package/request.md) ^2.75.0
- [commander](https://npm.io/package/commander.md) ^2.9.0
- [line-reader](https://npm.io/package/line-reader.md) ^0.4.0

## Alternatives

- [lodash.startswith](https://npm.io/package/lodash.startswith.md) — 769.7K weekly downloads
- [@tarojs/service](https://npm.io/package/@tarojs/service.md) — 33.9K weekly downloads
- [io.extendreality.tilia.indicators.spatialtargets.unity](https://npm.io/package/io.extendreality.tilia.indicators.spatialtargets.unity.md) — 131 weekly downloads
- [@rtarojs/taro](https://npm.io/package/@rtarojs/taro.md) — 90 weekly downloads
- [node-branch-io](https://npm.io/package/node-branch-io.md) — 50 weekly downloads

## Recent versions

- 0.7.1 (latest) — 2016-10-30
- 0.7.0 — 2016-10-28
- 0.6.1 — 2016-10-28
- 0.6.0 — 2016-10-28
- 0.5.1 — 2016-10-24
- 0.5.0 — 2016-10-24
- 0.4.0 — 2016-10-24
- 0.2.1 — 2016-10-24
- 0.2.0 — 2016-10-24
- 0.1.1 — 2016-10-24
- 0.1.0 — 2016-10-24
- 0.0.18 — 2016-10-24

## README

## ip-manager

> manage your hosts file, just right now!

### install
```
sudo npm install ip-manager -g
```

### examples

#### init
```
ip-manager init
```

**ip-manager will not manage your old hosts**

*If you want ip-manager manage your old hosts,
 you can put your old hosts between the '#ip-manager-start' and '#ip-manager-end',
 and then add '#ip-manager' at the end of each line.*

#### add a hosts line
```
ip-manager add home.xhinliang.com 115.19.85.18
ip-manager add home.xhinliang.com 115.159.85.182
ip-manager add resume.xhinliang.com 115.159.85.12
```

#### show the list of hosts
```
ip-manager list
```

#### enable an ip to a domain
```
ip-manager enable resume 182
ip-manager enable home 18
ip-manager enable list
```

#### search and check status
```
ip-manager status home
```

#### disable all ip to a domain
```
ip-manager diable home
ip-manager list
```

### build
> ip-manager is writen by TypeScript, so you should install `typings` and `TypeScript` if you want to build it.

```
git clone https://github.com/XhinLiang/ip-manager.git
cd ip-manager
npm install
typings install
tsc
```

### license
```
MIT License

Copyright (c) 2016 Xhin Liang

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
```

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