
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Simple, programmatic
hostsfile manager. Just likenrm.
npm install hfm -g
If you use OS X or Linux, this module assumes your hosts file is at /etc/hosts. On
Windows, it assumes your hosts file is at C:/Windows/System32/drivers/etc/hosts.
Print help message for hfm
$ hfm help
Usage: hfm [options] [command]
Options:
-V, --version output the version number
-h, --help output usage information
Commands:
list|ls List origin or local host files alias
show Show all current domain records in hosts file
alias <name> <path> Alias a(n) origin/local host file
del <name> Unalias a(n) origin/local host file
set <ip> <domain...> Set a domain in the hosts file
remove <domain...> Remove a set of host entries from URL or local path
search <domain> Search related domain records in hosts file
use <alias> Use a(n) origin hosts path or an ALIAS_NAME(see `hfm ls`)
unuse <alias> Unuse a(n) origin hosts path or an ALIAS_NAME(see `hfm ls`)
help Print help for hfm
List origin or local host files alias
$ ./bin/cli.js ls
* Google https://raw.githubusercontent.com/googlehosts/hosts/master/hosts-files/hosts
* GoogleMirror https://coding.net/u/scaffrey/p/hosts/git/raw/master/hosts-files/hosts
Show all current domain records in hosts file
$ hfm show
# ----------------------------
# SYSTEM
127.0.0.1 localhost
255.255.255.255 broadcasthost
Set a domain in the hosts file
Remove a set of host entries from URL or local path
Alias a(n) origin/local host file
pathcould be local path or URL
Unalias a(n) origin/local host file
Search related domain records in hosts file
$ hfm search \.com$
$ hfm search google.*
$ hfm search www.google.com
Use a(n) origin hosts path or an ALIAS_NAME(see
hfm ls)
$ hfm use Google
Unuse a(n) origin hosts path or an ALIAS_NAME(see
hfm ls)
FAQs
Host file manager for command line.
We found that hfm demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.