Security News
Opengrep Emerges as Open Source Alternative Amid Semgrep Licensing Controversy
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
@webextensions/parse-hosts
Advanced tools
Note: This is a fork of https://github.com/takanopontaro/node-parse-hosts
Parse the hosts file and return its list.
npm install parse-hosts
var ph = require('parse-hosts');
// just call this
ph.get();
// the return value is object.
// key is ip address and value is array of hostnames.
// {
// '127.0.0.1': ['localhost'],
// '192.168.50.1': ['host1', 'host2']
// }
// you can specify the location of the hosts file.
ph.get('/path/to/hosts');
// if you want to get "127.0.0.1" mapped to "localhost" regardless of whether
// it's in the hosts file, use optimize(). this method ensures generating it.
ph.optimize();
npm test
Licensed under the MIT license.
FAQs
Parse the hosts file.
We found that @webextensions/parse-hosts 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
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.