Category: Node js

  • Node.js Global Objects

    Node.js global objects are global in nature and available in all modules. You don’t need to include these objects in your application; rather they can be used directly. These objects are modules, functions, strings and object etc. Some of these objects aren’t actually in the global scope but in the module scope. A list of…

  • Node.js Command Line Options

    There is a wide variety of command line options in Node.js. These options provide multiple ways to execute scripts and other helpful run-time options. Let’s see the list of Node.js command line options: Index Option Description 1. v, –version It is used to print node’s version. 2. -h, –help It is used to print node…

  • Node.js Package Manager

    Node Package Manager provides two main functionalities: The npm comes bundled with Node.js installables in versions after that v0.6.3. You can check the version by opening Node.js command prompt and typing the following command: Installing Modules using npm Following is the syntax to install any Node.js module: Let’s install a famous Node.js web framework called…

  • Node.js REPL

    The term REPL stands for Read Eval Print and Loop. It specifies a computer environment like a window console or a Unix/Linux shell where you can enter the commands and the system responds with an output in an interactive mode. REPL Environment The Node.js or node come bundled with REPL environment. Each part of the REPL environment has…

  • Node.js Console

    The Node.js console module provides a simple debugging console similar to JavaScript console mechanism provided by web browsers. There are three console methods that are used to write any node.js stream: Node.js console.log() The console.log() function is used to display simple message on console. File: console_example1.js Open Node.js command prompt and run the following code:…

  • Node.js First Example

    Node.js console-based Example File: console_example1.js Open Node.js command prompt and run the following code: Here, console.log() function displays message on console. Node.js web-based Example A node.js web application contains the following three parts: How to create node.js web applications Follow these steps: How to start your server: Go to start menu and click on the…

  • Install Node.js on Linux/Ubuntu/CentOS

    We can easily install Node.js on linux/ubuntu/centOS/fedora/linuxmint etc. To install Node.js on Linux (Ubuntu) operating system, follow these instructions: 1) Open Ubuntu Terminal (You can use shortcut keys (Ctrl+Alt+T). 2) Type command sudo apt-get install python-software-properties 3) Press Enter (If you have set a password for your system then it will ask for the password) 4)…

  • Install Node.js on Windows

    To install and setup an environment for Node.js, you need the following two softwares available on your computer: Text Editor: The text editor is used to type your program. For example: Notepad is used in Windows, vim or vi can be used on Windows as well as Linux or UNIX. The name and version of…

  • Node.js Tutorial

    Node.js tutorial provides basic and advanced concepts of Node.js. Our Node.js tutorial is designed for beginners and professionals both. Node.js is a cross-platform environment and library for running JavaScript applications which is used to create networking and server-side applications. Our Node.js tutorial includes all topics of Node.js such as Node.js installation on windows and linux,…