AuthorTutor Network Team

Streams in Node JS

S

What are streams in Node JS? Streams in Node are objects that allow to read and write data. Of course, to read the data, the stream requires some source of data, and to write the data, it needs some destination. Streams perform the read operation from source and write operation on the destination in a continuous manner. There are four types of streams in Node JS. Writeable Streams: In writable...

Buffers in Node JS – Part 2

B

We split the buffers topic into two tutorials for better understanding. In the previous article, we learned about the introduction to buffers, writing data in a buffer, and reading it using Buffer class methods in Node JS. In this article, you will learn more methods provided by the Node JS buffer class. These methods are commonly used while working with buffers, so you must practice them on your...

Buffers in Node JS

B

Before studying the buffers in Node JS, let’s learn some terms before. What is unicode representation? Unicode is a standard to encode the text and each character is assigned a unique numeric value in this standard. Then this standard value remains the same on every platform and can be used cross-platform. Pure JavaScript supports Unicode well but in the case of the binary form of data, it...

Event Emitter in Node JS

E

Nodes in Node JS emit many events regularly with the help of event emitter. For instance, whenever a peer user connects with net.Server, it emits an event. Similarly, fs.readStream emits an event upon file opening. All the event emitting objects are instances of events.EventEmitter. In the previous articles, we are learning about callbacks and events. In continuation of those tutorials, we will...

Event Loop in Node JS

E

We learned the callback concept of Node JS in the previous tutorial. This article is in the continuation of the previous and relates events with the event loop, so if you have not gone through the callback concept, it is recommended to grip on the concept first. How Node JS event work with callback? Node JS provides concurrency by using the callbacks and events. Although Node JS is a single...

Callback Function in Node JS

C

What is callback concept in Node JS? As we know that Node JS uses core concepts of JavaScript. The callback function is called after the completion of a specific task. During the Node JS development, a developer makes heavy use of the callback concept of Node JS. Asynchronous behavior of Node JS allows executing the code without waiting for the database query, any I/O operation within the...

NPM – Node Package Manager

N

In this article, you will learn about NPM Package Manager in Node. You may think, why a dedicated node package manager comes with Node. The first answer is Yes, Node JS is based on Javascript and its main worth is due to the large number of packages bundled in it. To manage all these packages, a separate service help NPM helps to perform the following two main functionalities. Functionalities of...

REPL in Node JS

R

Read Eval Print Loop (REPL) is a terminal in Node JS that provides an environment to perform operations. We will discuss these operations in the next section. Like Windows and Linux operating systems provides interactive shells and terminals to run commands. These commands are processed by the terminal and the terminal generates output. Similar is the case with the Node REPL terminal. This...

Create first Application in Node JS

C

In the previous tutorial, we covered the basic concepts and introduction to Node JS and environment setup. In this article, you will learn how to create a Node JS application and run it in the browser. Before starting creating our first Node JS app, go through the components of the JS application. Components of Node JS application Required module- There are many important Node JS modules that...

Introduction to Node JS

I

Introduction to Node JS Node JS is a very powerful platform based on Javascript v8 engine. Node JS is a flexible language that makes use of core concepts of JavaScript and ranges from small-scale to very large-scale web-based applications. It has great support for real-time communication using sockets and many other features. We are very excited to bring this series of Node JS tutorials. Going...

Tutor Network