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.
Simple HTTP HEAD requests in node.js, just like you would with curl -I
.
var curli = require('curli');
curli('http://www.google.com', { 'Cache-Control': 'no-cache' }, function(err, headers) {
if (err) return console.error(err);
console.log(headers);
});
The first argument uri
can either be a string or request style object. Internally if passed a string curli will use url.parse()
to create an object that gets passed to http.request(opts)
.
You may also wish to specify custom headers to be sent with the request. These can be passed via the optional opts
argument. This is optional as it's also possible to pass headers via uri.headers
where uri
is a http.request(opts)
style object.
The third argument is a standard Node style callback cb(err, headers)
and will be called once a response is recieved. It returns err
as an error object or null
, and headers
is a standard JavaScript object identical to res.headers
object.
npm install curli
MIT
FAQs
Simple HTTP HEAD requests, just like you would with `curl -I`.
We found that curli 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
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.