Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
chrome-dns
Advanced tools
Readme
dns
API in Chrome AppsThis module lets you use the Node.js dns API in Chrome Packaged Apps.
The chrome.dns API for Chrome Apps is not documented, but it still available. You need the "dns" permission in your manifest.
As of August 2019, it appears that the API is only available if you use Chrome Dev channel or Canary channel.
Instead of learning the quirks of Chrome's chrome.dns
API for networking in Chrome Apps just use the higher-level node API you're familiar with. Then, compile your code with browserify and you're all set!
This module is used by the Chrome App build of webtorrent, which is used in Brave Browser.
npm install chrome-dns
Use node's dns
API. Example:
var dns = require('chrome-dns')
dns.lookup('feross.org', (err, address, family) => {
if (err) {
console.error(err)
return
}
console.org(`feross.org has the IPv${family} address of ${address}`)
})
See nodejs.org for full API documentation: dns
To run tests, use npm test && npm run test-browser
. The tests will run TCP and
UDP servers and launch a few different Chrome Packaged Apps with browserified
client code. The tests currently require Chrome Canary.
MIT. Copyright (c) Feross Aboukhadijeh
FAQs
Use the Node `dns` API in Chrome Apps
The npm package chrome-dns receives a total of 2,892 weekly downloads. As such, chrome-dns popularity was classified as popular.
We found that chrome-dns 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.