Export to Excel in Node js

Leave a Comment
To export data in node js we will use exceljs module. So let's direct jump into the code. Let's first install this module using below command  npm i exceljs now create file name as exportToExcel.js and copy paste below code const excel = require("exceljs"); function exportExcel() { let workbook = new excel.Workbook(); let worksheet = workbook.addWorksheet("Straw Hat"); let exportData = []; exportData.push({ ...

How node works

Leave a Comment
So as we know node js application are highly-scalable and this is because of the non-blocking or async nature of node js. What do I mean by async nature of node js??  Asynchronous programming is a design pattern which ensures the non-blocking code execution Non blocking code do not prevent the execution of piece of code. In general if we execute in Synchronous manner i.e one after another we unnecessarily stop the execution of those code which is not depended on the one you are executing this is how application build...

What is node js architecture

Leave a Comment
 In last blog we learnt that what is node js ?, Node is runtime environment. But what is run time environment really?? Well, before node we used JavaScript only to build application that run inside as browser, so every browser having JavaScript engine that takes JavaScript code and convert into machine code or code which computer can understand and execute the code but what are the engine which used by browser Below is the list of browsers with their JS engine Microsoft edge uses chakra.Firefox uses Spider...

What is Node js?

Leave a Comment
Node is Open source and cross platform run time environment for executing JavaScript code outside of a browser. We generally use node to build back-end service also called API or application programming interfaces. These are the service that used by frontend application or client applications. For example, mobile app running in mobile phones or web app running inside of web browser. These client apps are simply what the user sees and...
Powered by Blogger.