Awaiting Loops in Node JS along with Increased Performance (Part 2)

This is an article where I will be explaining a method by which you can write loops that can not only process iterations parallelly, but can also be awaited. Thus combining the good features of forEach loop and for loop together and discarding their shortcomings !

Awaiting Loops in Node JS along with Increased Performance (Part 1)

Blocking the loop execution

A lot of Node JS developers use forEach loops to operate on Array of elements or on a Map of elements. However, since these loops are non-blocking – they cannot be awaited.

Creating Your Own TypeScript Package (With automatic index generation and support for aliases)

It is a usual practice in huge organisations to group common parts of a project and to modularize it for re-usability within the organisation. In Node JS, Packages are the way to go for organizing the parts of gigantic projects and modularizing it’s code.

Following are the steps on how you can create your own NPM Package/Node Package/TypeScript Package :

Continue reading “Creating Your Own TypeScript Package (With automatic index generation and support for aliases)”

Resolving An Outer Promise Inside A Callback Function In NodeJS (TypeScript/Javascript)

Async-Await along with Promises are often used in NodeJS in order to escape the “Callback Hell Scenario” and to make the code more elegant as well as manageable. However, while development you might come across an npm package that does not support Async/Await and Promises, but rather has Functions that provide their output only as callbacks!

Continue reading “Resolving An Outer Promise Inside A Callback Function In NodeJS (TypeScript/Javascript)”