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

async-you

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

async-you - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

problems/map/problem.txt

2

package.json
{
"name": "async-you",
"version": "0.0.4",
"version": "0.0.5",
"description": "Learn async via a set of self-guided workshops.",

@@ -5,0 +5,0 @@ "author": "Bulkan Evcimen <bulkan@gmail.com> (https://github.com/bulkan)",

Occasionally you will need to run a series of asynchronous calls without caring
about the return data but check if any throw errors (sometimes not even that).
For example the following will do three
var http = require('http')
, async = require('async');
async.each(['cat', 'meerkat', 'penguin'], function(item, done){
var opts = {
hostname: 'http://httpbin.org',
path: '/post',
method: 'POST'
};
var req = http.request(opts, function(res){
res.on('data', function(chunk){
});
res.on('end', function(){
return done();
});
});
req.write(item);
req.end();
},
function(err){
if (err) console.log(err);
});
Create a program that will receive two URLs as the first and second command-line arguments.
Then using `http.get` create GET requests to these URL's console.log any
Then using `http.get` create two GET requests to these URL's console.log any
errors.
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