Posts Tagged Under: Node.js

Setup your node.js project easily with voidcanvas-cli

npm install -g voidcanvas Use node.js v4.1.2 or greater. Assuming that you are familiar with node.js and have already installed void canvas cli in your computer globally, using the command given above; I’m starting the hows’ and whys’ of this Command Line Interface. What is this cli for In simple words, it just

Read More

Authentication using Google’s oAuth api with node.js

OAuth authentications are pretty popular now a days and another thing which is popular is JavaScript. This article shows how to plugin google’s oAuth api for authentication in your own node application. The github repo is also available. A background of oAuth OAuth is an authentication technique which provides you a secure

Read More

Get working directory name and file name in Node

__dirname : full directory path __filename: exact file location Node provides two variables named “__dirname” and “__filename” who returns the directory path of the currently executing file and the exact location of the file respectively. Both of them return string. To know in depth go through the following. Get working directory path We can

Read More