NPM Packages: To use or not to use?
JavaScript evolves overtime. Sometimes packages are no longer supported and updated because they utilize an old JavaScript syntax, or the package is no longer popular because there is a better way to approach a problem. A package is marked as depreciated when it is no longer supported. The request.js package is an example of a depreciated package. The request.js package is interesting because HTTP requests allow JavaScript applications to communicate in real-time using the HTTP protocol to create rich-media applications, games and utilities. HTTP requests made with request.js provide simple, easy to use syntax with the use of a callback function: const request = require('request'); request('http://www.google.com', function (error, response, body) { console.error('error:', error); // handle error console.log('statusCode:', response && response.statusCode); // Print the response status code if a response was received console.log('body...