Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/remixz/hostme
Simple hosts file setup.
https://github.com/remixz/hostme
Last synced: about 1 month ago
JSON representation
Simple hosts file setup.
- Host: GitHub
- URL: https://github.com/remixz/hostme
- Owner: remixz
- License: mit
- Created: 2014-05-24T02:38:00.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-05-24T02:44:26.000Z (over 10 years ago)
- Last Synced: 2024-10-08T16:23:55.897Z (about 1 month ago)
- Language: JavaScript
- Size: 121 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## hostme
Simple hosts file setup.
[![NPM](https://nodei.co/npm/hostme.png?compact=true)](https://nodei.co/npm/hostme/)
### Installation
```bash
npm install -g hostme
```### Usage
Create a file called `.hosts` in your current directory. In there, put anything you wish to add to your hosts file. Example:
```
# Add comments like this192.0.2.111 example.dev
198.51.100.42 sub.example.dev
```Then, just run `hostme` in that directory. The definitions will be added to your hosts file. Tada!
#### CLI:
```
Usage: hostme [options]Options:
--config Config file. Defaults to ".hostme".
--hosts Path to host file. Defaults to "/etc/hosts".
--version Outputs the current version.
```