How to Switch Node Versions?

How to Switch Node Versions?

You might be working on many node projects on your device. You may be using different versions of Node for different projects. There could be an issue while running older projects in new version of node. As for example, let’s say you have created one project 2 years ago which is compatible with node version v14.17.6 . Now, you have updated the node version of your machine to v20.2.0. In this case, your older project might not work in the newer version of node....

May 18, 2023 · 2 min · 423 words · Prakash Bhandari
Create Q & A With OpenAI ChatGPT in NodeJS and React

Create Q & A With OpenAI ChatGPT in NodeJS and React

OpenAI recently released the ChatGPT-3 and this is trending topic. I also tried ChatGPT-3 in their playground. It’s really cool, and more than what I thought. I have been using GitHub Copilot which is also powered by OpenAI. OpenAI Codex is a generative pertained language model which helps people write code even for non-tech people. ChatGPT-3 dose more than helping people write code. It interacts like human in a conversational way to provide a detailed response to their query....

December 15, 2022 · 6 min · 1169 words · Prakash Bhandari
How to Publish Your Own Public NPM Package

How to Publish Your Own Public NPM Package?

Publishing your own public NPM package is not that hard. All you need is basic understanding of Javascript, NPM, package.json file and Account in https://www.npmjs.com In this post, I will try to explain the steps to create and publish your own public NPM package to https://www.npmjs.com. To demonstrate, I will create real NPM package which will convert English number to Nepali Number and Nepali number to English Number. Finally, this package will be publish to https://www....

December 1, 2022 · 8 min · 1624 words · Prakash Bhandari
Javascript Unit Test With Jest

Javascript Unit Test With Jest

In this tutorial, I will demonstrate how to write a basic unit test to calculate the area of geometric shapes like circle and rectangle by using the JavaScript Testing Framework called Jest. ...

November 12, 2022 · 4 min · 672 words · Prakash Bhandari