New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

hosts-parser

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hosts-parser - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

2

package.json
{
"name": "hosts-parser",
"version": "0.3.0",
"version": "0.3.1",
"description": "hosts file parser",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -9,3 +9,3 @@ # hosts-parser

var fs = require('fs');
var Hosts = require('hosts-parser');
var Hosts = require('hosts-parser').Hosts;
var hosts = new Hosts(fs.readFileSync('/etc/hosts', 'utf8'));

@@ -28,3 +28,3 @@ console.log(hosts.toJSON());

```
var file = fs.readFileSync('/etc/hosts')
var file = fs.readFileSync('/etc/hosts', 'utf-8');
var hosts = new Hosts(file);

@@ -31,0 +31,0 @@ // or (new Hosts()).parse(file);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc