Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
load-ip-set
Advanced tools
This module is used by WebTorrent!
npm install load-ip-set
Given one of the following:
{ start: '1.2.3.0', end: '1.2.3.255' }
ip rangesthis module loads the ip set (downloading from the network, if necessary) and returns an ip-set object. An ip-set
is just a mutable set data structure optimized for use with IPv4 and IPv6 addresses.
import loadIPSet from 'load-ip-set'
loadIPSet('http://example.com/list.txt', (err, ipSet) => {
if (err) throw err
ipSet.contains('1.2.3.4') //=> true
ipSet.contains('2.2.2.2') //=> false
})
The second argument can be an optional opts
object which will be passed to
simple-get
and the node.js core http.request
method. This is useful for setting the user agent, for example.
loadIPSet('http://example.com/list.txt', {
headers: {
'user-agent': 'WebTorrent (http://webtorrent.io)'
}
}, (err, ipSet) => {
})
MIT. Copyright (c) Feross Aboukhadijeh and WebTorrent, LLC.
FAQs
download and parse ip-set (blocklist) files
The npm package load-ip-set receives a total of 2,121 weekly downloads. As such, load-ip-set popularity was classified as popular.
We found that load-ip-set demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 9 open source maintainers 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
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.