
Security News
VulnCon 2025: NVD Scraps Industry Consortium Plan, Raising Questions About Reform
At VulnCon 2025, NIST scrapped its NVD consortium plans, admitted it can't keep up with CVEs, and outlined automation efforts amid a mounting backlog.
electron-hostile
Advanced tools
This package is inspired by hostile. In an electron app usually we need to get a confirmation from the user. When you add/delete an entry to/from hosts file user will get a confirmation box (mac: password, win: confirm)
import { getEntries } from 'electron-hostile'
// returns entries without comments
const entries = await getEntries()
// returns all entries with comments
const entries = await getEntries(true)
import { addHostsEntry, addHostsEntries } from 'electron-hostile'
// add single entry
await addHostsEntry('100.100.100.100', 'mysite.local', 'WRAPPER', { name: 'MYAPP', icon: '/static/img.png' })
// add multiple entries
await addHostsEntries([
{ ip: '1.1.1.1', host: 'site1.local', wrapper: 'TEST' },
{ ip: '1.1.1.1', host: 'www.site1.local', wrapper: 'TEST' },
], { name: 'MYAPP', icon: '/static/img.png' })
import { removeHostsEntry, removeHostsEntries } from 'electron-hostile'
// remove single entry
await removeHostsEntry('mysite.local', { name: 'MYAPP', icon: '/static/img.png' })
// add multiple entries
await removeHostsEntries([
{ ip: '1.1.1.1', host: 'site1.local' },
{ ip: '1.1.1.1', host: 'www.site1.local' },
], { name: 'MYAPP', icon: '/static/img.png' })
FAQs
Update hosts file with permission check
The npm package electron-hostile receives a total of 87 weekly downloads. As such, electron-hostile popularity was classified as not popular.
We found that electron-hostile 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
At VulnCon 2025, NIST scrapped its NVD consortium plans, admitted it can't keep up with CVEs, and outlined automation efforts amid a mounting backlog.
Product
We redesigned our GitHub PR comments to deliver clear, actionable security insights without adding noise to your workflow.
Product
Our redesigned Repositories page adds alert severity, filtering, and tabs for faster triage and clearer insights across all your projects.