What is JWT ? Json web token . JWT token is generated by the server on request from the client browser. It is a stateless …
Category: Node Js
Node.js is an open-source, cross-platform JavaScript run-time environment for executing JavaScript code server-side. Historically, JavaScript was used primarily for client-side scripting, in which scripts written in JavaScript are embedded in a webpage’s HTML, to be run client-side by a JavaScript engine in the user’s web browser. Node.js enables JavaScript to be used for server-side scripting, and runs scripts server-side to produce dynamic web page content before the page is sent to the user’s web browser. Consequently, Node.js has become one of the foundational elements of the “JavaScript everywhere” paradigm,allowing web application development to unify around a single programming language, rather than rely on a different language for writing server side scripts.
Promises are the alternate for the callback for handlling the asynchronos nature of javascript. —————————– A promise is an abstraction for asynchronous programming. It’s an …
package-lock.json is automatically generated for any operations where npm modifies either the node_modules tree, or package.json. It describes the exact tree that was generated, such …
https://www.npmjs.com/package/nbm nbm is actually a Benchmark utility for nodejs To install $ npm install nbm Usage Initialize new benchmark object. var nbm = require(‘nbm’); var …
In node js we can perform the input-output operation through the fs module. var fs = require(‘fs’); Opening a file : We can use open() …
Streams are the object which will let you to read the data from the source and also write the data to destination in the continuous …
Nodejs is the server side scripting language.It is basically built for single page applications, video streaming sites. It is non blocking as it is written …
This command locks down the versions of a package’s dependencies so that you can control exactly which versions of each dependency will be used when …
We do have the plenty of options to do so: JSLint by Douglas Crockford JSHint ESLint JSCS These tools are really helpful when developing code …
Node.js – Event Loop. Node.js is a single-threaded application, but it can support concurrency via the concept of event and callbacks. Every API of Node.js …