Browse By

Tag Archives: Nodeschool.io

Nodeschool.io – Http Client and Http Collect

Below you can find my solutions to Nodeschool.io exercises “HTTP Client” and “HTTP Collect”.  In the first one you have to use the http core module. The code is simple enough:  var http = require(“http”); http.get(process.argv[2], function(response){ response.setEncoding(“utf8”) response.on(“data”, function(data){ console.log(data); }) }); And my

Nodeschool.io – Make it modular

Recently I was playing with the exercises from the fantastic http://nodeschool.io. Below is my solution to “Make it modular” exercise. Of course you can improve it eg. with the use of Regex but I just wanted to keep it simple for the start.  So the