{

Learn free node tutorials


chalkjs command linting output styling

February 28, 2022 ·  2 min read

What is chalk in JS? chalk is a JavaScript library for styling the console output strings in a terminal. We can style using foreground and background colors, Underline, Bold and RGB colors of the console or terminal output window. It is a popular library used in Nodejs to apply syntax colors to create own themes to terminal windows. Features: Opensource npm library provided All colors are supported Server-side support, not a browser-based library You can also check other posts on npm command deprecate option is deprecated...


How to check internet connection status in NodeJs with example

February 28, 2022 ·  2 min read

Nodejs Is a javascript environment for Running applications on Desktop and IoT devices. Sometimes, We need to check internet connection is available in IoT Rasberry PI devices. There are multiple ways we can check the internet network connection in Nodejs. You can also check other posts on npm command deprecate option is deprecated and Fix for digital envelope routines::unsupported navigator.onLine gives the status of the internet connection in a browser. But It does not give an accurate result....


How to read command line arguments in Nodejs application?

February 28, 2022 ·  2 min read

This post covers an example of how to read command-line arguments from a nodejs application. In Nodejs, There are many ways we can read command line parameters from a terminal. parse with the process.argv variable minimist library yargs npm library You can also check other posts on npm command deprecate option is deprecated How to read command line arguments using process argv variable the process is an environment variable to hold nodejs environment information....


How to reduce Image width and height in Nodejs| image-size npm library

February 28, 2022 ·  2 min read

In my previous tutorials, Discussed how to get image width and height in JavaScript Image size width and height in javascript In this tutorial, we are going to discuss how to get Image size in the Nodejs application. In Nodejs, We have different ways we can get image size using npm libraries and Inbuilt APIs This tutorial talks about image-size npm library for example. This library supports all images of different types - PNG, BMP, ICO, SVG, and JPEG...


Quick fix for error:0308010C:digital envelope routines::unsupported

February 28, 2022 ·  3 min read

This tutorial explains about solution for error:0308010C:digital envelope routines::unsupported Solution for error:0308010C:digital envelope routines::unsupported Today, When i am starting the nuxtjs node application, got the below error node:internal/crypto/hash:71 this[kHandle] = new _Hash(algorithm, xofLen); ^ Error: error:0308010C:digital envelope routines::unsupported at new Hash (node:internal/crypto/hash:71:19) at Object.createHash (node:crypto:133:10) at module.exports (A:\work\nuxtapp\node_modules\webpack\lib\util\createHash.js:135:53) at NormalModule._initBuildHash (A:\work\nuxtapp\node_modules\webpack\lib\NormalModule.js:417:16) at handleParseError (A:\work\nuxtapp\node_modules\webpack\lib\NormalModule.js:471:10) at A:\work\nuxtapp\node_modules\webpack\lib\NormalModule.js:503:5 at A:\work\nuxtapp\node_modules\webpack\lib\NormalModule.js:358:12 at A:\work\nuxtapp\node_modules\webpack\node_modules\loader-runner\lib\LoaderRunner.js:373:3 at iterateNormalLoaders (A:\work\nuxtapp\node_modules\webpack\node_modules\loader-runner\lib\LoaderRunner.js:214:10) at Array. (A:\work\nuxtapp\node_modules\webpack\node_modules\loader-runner\lib\LoaderRunner.js:205:4) at Storage.finished (A:\work\nuxtapp\node_modules\webpack\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:55:16) at A:\work\nuxtapp\node_modules\webpack\node_modules\enhanced-resolve\lib\CachedInputFileSystem....


Quick way to delete node_modules folder on Windows

February 28, 2022 ·  2 min read

Sometimes, We want to delete the node_modules folder in windows for a fresh installation of packages. node_modules contains a nested recursive folder, and the file count is very huge. Delete a node_module folder in windows is not the quickest and is time-consuming because of the following reasons. Due to this, In Windows, The node_modules files are deleted in two phases. Discovery phase: In this, It calculates the number of files and folder size before deleting the folders and files....


Subscribe
You'll get a notification every time a post gets published here.