Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/int64ago/xhost
HostAdmin implementation in Node CLI
https://github.com/int64ago/xhost
host-switch hosts hosts-manage hosts-switcher
Last synced: 3 days ago
JSON representation
HostAdmin implementation in Node CLI
- Host: GitHub
- URL: https://github.com/int64ago/xhost
- Owner: int64ago
- License: mit
- Created: 2017-09-30T01:31:04.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-01T01:19:22.000Z (about 7 years ago)
- Last Synced: 2024-11-08T07:50:39.405Z (about 1 month ago)
- Topics: host-switch, hosts, hosts-manage, hosts-switcher
- Language: JavaScript
- Size: 3.91 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# xhost
[![NPM version][npm-image]][npm-url]
[![npm download][download-image]][download-url][npm-image]: https://img.shields.io/npm/v/xhost.svg?style=flat-square
[npm-url]: https://npmjs.org/package/xhost
[download-image]: https://img.shields.io/npm/dm/xhost.svg?style=flat-square
[download-url]: https://npmjs.org/package/xhost[HostAdmin](https://addons.mozilla.org/en-US/firefox/addon/hostadmin/) implementation in Node CLI
*Tips: ONLY test on Node v8+*
## Usage
- [Fix permissions](https://code.google.com/archive/p/fire-hostadmin/wikis/GAIN_HOSTS_WRITE_PERM.wiki)
- Edit `hosts` based on [Group syntax](#group-syntax)
- `npm i -g xhost`
- `xhost`## Screenshot
![](https://cdn.int64ago.org/m4vq42fj.gif)
## Group syntax
```bash
#==== GROUPNAME
[...]
#====
```for example:
```bash
#==== Project 1
#127.0.0.1 localhost1
127.0.0.1 localhost2
127.0.0.1 localhost3
#====#==== Project 2
#127.0.0.1 localhost1
#127.0.0.1 localhost2
#127.0.0.1 localhost3
#====
```## License
MIT