How to get object keys for true values in JavaScript

In this post, I would like to share a few easy ways of extracting keys from an object for truthy values in JavaScript. This kind of problem is quite common. The following examples will help you select the best solution for your case and save you time.

Read full post

Random values in JavaScript and Node.js

There are several different ways of generating random values in Node.js. Some methods use only base JavaScript functions; others require additional modules. Generated values also differ from method to method. Some may return only numbers whereas others return a Base64 string or UUIDs.

Images with data URI scheme using Node.js

In this post, I am sharing how to embed an image data directly into the document with data URI scheme in Node.js and Jade. The data URL scheme specification is RFC 2397. This process will basically require conversion of an image into Base64 format.

Read full post