Your Choice JavaScript News

Node News Friday, April 6 Cache, Different caching options, Node.js module gm & more…


What’s new?

  • Just one route that points to a /products endpoint: – – // index.js – […] – – app.get(‘/products’, function(req, res){ – setTimeout(() = { – let db = new let sql = `SELECT * FROM products`; – – db.all(sql, [], (err, rows) = { – if (err) { – throw…
  • Import the module: – – // index.js – […] – – cache cache = require(‘memory-cache’); – – […] – Create and configure cache middleware : – – // index.js – – // configure cache middleware – let memCache = new cache.Cache(); – let cacheMiddleware = (duration) = { – return…
  • The index.js will look like this : – – // index.js – […] – – const flatCache = require(‘flat-cache’) – – […] – Then the new cache is loaded – – // index.js – […] – – // load new cache – let cache = // optionally, you can go…
  • If no directory was specified the module will determine where to save the cache-file – – – To use the flatCacheMiddleware , edit the application routes so : – – // index.js – […] – – // create app routes – – app.get(‘/products’, flatCacheMiddleware, function(req, res){ – […] – });…
  • When you have it installed, you then install the memcached node client by running : – – npm install –save memcached – Now that the client is installed, import the module in the index.js: – – // index.js – […] – – const Memcached = require(‘memcached’); – – […] -…

Tags: cache, response, different caching options, redis node client, node applications


  • I’ve put together a list of the ones I find useful in my daily work as a web and software developer, from image manipulation, string validation and PDF generation to minification, logging and the creation ofcommand line applications.
  • Sprite sheets are bitmap files that contain many different small images (forexample icons), and they are often used to reduce the overhead of downloading images and speed up overall page load.
  • This module takes a folder as input and combines all the images in it into one sprite sheet.
  • Ever wanted to process HTML code on the server side and missed the jQuery utility methods?
  • Plus, according to benchmarks, it’seight times faster than jsdom, another module for working withthe DOM on the server side.

Tags: Node.js module gm, standard JavaScript API, different small images, command line applications, ultra-fast libvips image


  • You can install the service via npm – – – You can then interact with your LND node directly – – – NOTE: You will need to make sure you Set the Environment Variables unless you want to pass in base64 encoded values to the lightningDaemon for the cert and…
  • Please also make sure that you have node.js / npm installed, too.
  • Make sure your contains the following environment variables – – – Make sure to in the window you are running the service from – – Make sure your contains the following environment variables – – – Make sure to in the window you are running the service from – -…
  • Make sure that the request has an authorization header that contains Base64 encoded credentials.
  • Basic example of an authorization header – – – To generate the Base64 encoded credentials in Chrome for example in the console you can – – – And then set the value of the Authorization header to the returned value .

Tags: following environment variables, code. npm Orgs, REST interface, working github account, authorization header


Tags: Watson, Personality Insights, Personality Insights service, Personality Insights documentation, Example Watson Results


  • Were looking for a back-end or full stack JavaScript developer to help create the most helpful digital money account.
  • Tech stack is made up of Node.js, Mongo, Express, MySQL, Redis, Vue/Angular on the front-end, AWS, GCP, Jest, and we use Gulp and Webpack to build.
  • The ideal candidate will have: – – – – Strong experience with Javascript (ES5/6) – – Strong experience with Node.js – – You love working with NoSQL and SQL DBs (Mongo/MySQL) and you know the difference of when to use each – – You have tons of experience in writing,…

Tags: stack JavaScript developer, lead back-end engineer, digital money account, USSD financial education, ideal JavaScript developer


Top Node Courses

The Complete Node.js Developer Course (2nd Edition) (60,232 students enrolled)

By Andrew Mead
  • Build, test, and launch Node apps
  • Create Express web servers and APIs
  • Store data with Mongoose and MongoDB
  • Use cutting-edge ES6/ES7 JavaScript
  • Deploy your Node apps to production
  • Create real-time web apps with SocketIO

Learn more.


Angular (Angular 2+) & NodeJS - The MEAN Stack Guide (26,806 students enrolled)

By Maximilian Schwarzmüller
  • Build real Angular + NodeJS applications
  • Understand how Angular works and how it interacts with Backends
  • Connect any Angular Frontend with a NodeJS Backend
  • Use MongoDB with Mongoose to interact with Data on the Backend
  • Use ExpressJS as a NodeJS Framework
  • Provide a great user experience by using Optimistic Updating on the Frontend
  • Improve any Angular (+ NodeJS) application by adding Error Handling

Learn more.