node package manager
Painless code sharing. npm Orgs help your team discover, share, and reuse code. Create a free org »

cerebro-hosts

Cerebro-hosts

Cerebro plugin for manage /etc/hosts entries

Features

  • List hosts configured in /etc/hosts file.
  • Quick open /etc/hosts with the default editor.
  • Add / Remove hosts

Available Commands

  • hosts - Show all hosts from /etc/hosts file
  • hosts add <ip> <domain> - Add a new host configuration to hosts file.
  • hosts remove <ip> <domain> - Remove host configuration to hosts file.

Libraries

  • node-notifier - Node library for show desktop notifications.
  • hostile - Node library for parsing hosts file

Related

  • Cerebro – Plugin extracted from core Cerebro app;
  • cerebro-plugin – boilerplate to create Cerebro plugins;

License

MIT © Bruno Paz