Hi, I'm Melvin George. I help the world by building quality software.

         

Recent blogs

How to get the creation time of the file asynchronously using Node.js?

Learn how to use the stat() method from the filesystem module to get the creation time of the file asynchronously using Node.js

Read
Node.js
How to get the creation time of the file synchronously using Node.js?

Learn how to use the statSync() method from the filesystem module to get the creation time of the file synchronously using Node.js

Read
Node.js
How to get the last modified time of the file asynchronously using Node.js?

Learn how to use the stat() method from the filesystem module to get the last modified time of the file asynchronously using Node.js

Read
Node.js
How to get the last modified time of the file synchronously using Node.js?

Learn how to use the statSync() method from the filesystem module to get the last modified time of the file synchronously using Node.js

Read
Node.js
How to get the last accessed time of the file asynchronously using Node.js?

Learn how to use the stat() method from the filesystem module to get the last accessed time of the file asynchronously using Node.js

Read
Node.js
How to get the last accessed time of the file synchronously using Node.js?

Learn how to use the statSync() method from the filesystem module to get the last accessed time of the file synchronously using Node.js

Read
Node.js
How to check if a date is today or the current date in JavaScript?

Learn how to use the getDate(), getMonth() and the getYear() from the Date object to check if a date is today or current date in JavaScript

Read
JavaScript
How to change the input tag placeholder text color in CSS?

Learn how to use the ::placeholder pseudo-element to change the input tag placeholder text color in CSS

How to remove a directory synchronously using Node.js?

Learn how to use the rmdirSync() method from the filesystem module to remove a file synchronously using Node.js?

Read
Node.js
How to remove a directory asynchronously using Node.js?

Learn how to use the rmdir() method from the filesystem module to remove a file asynchronously using Node.js?

Read
Node.js
How to do object destructuring with types in TypeScript?

Learn how to define types for destructured object properties in TypeScript

Read
TypeScript
How to get the size of the file synchronously using Node.js?

Learn how to use the statSync() method from the filesystem module to get the size of the file synchronously using Node.js

Read
Node.js
How to get the size of the file asynchronously using Node.js?

Learn how to use the stat() method from the filesystem module to get the size of the file asynchronously using Node.js

Read
Node.js
How to output the full object or nested objects to the console in Nodejs?

Learn how to use the console.dir() method to output the full object or nested objects to the console in Nodejs

Read
Node.js
How to show a 'Are you sure to leave?', 'Leave Site?', etc. dialog box in the browser before the user leaves using JavaScript?

Learn how to use the onbeforeunload event to show a 'Are you sure to leave', 'Leave Site?', etc. dialog box in the browser before the user leaves using JavaScript

Read
JavaScript
How to change the ownership of the file synchronously in Node.js?

Learn how to use the chownSync() method from the filesystem module to change the ownership of the file synchronously in Node.js

Read
Node.js
How to change the ownership of the file asynchronously in Node.js?

Learn how to use the chown() method from the filesystem module to change the ownership of the file asynchronously in Node.js

Read
Node.js
How to get the operating system's current user group id using Node.js?

Learn how to use the userInfo() method from the os module to get the operating system current user group id using Node.js

Read
Node.js
How to get the operating system's current user id using Node.js?

Learn how to use the userInfo() method from the os module to get the operating system current user id using Node.js

Read
Node.js
How to remove duplicate elements from an array of objects in JavaScript?

Learn how to use the Set() constructor function and the array filter() method to remove duplicate elements from an array of objects in JavaScript

Read
JavaScript
How to remove properties from an object using destructuring and rest parameter in JavaScript?

Learn how to remove properties from an object using destructuring and rest parameter in JavaScript

Read
JavaScript
How to check if a file exists asynchronously in Node.js?

Learn how to use the access() method from the filesystem module to check if a file exists asynchronously in Node.js

Read
Node.js
How to check if a file exists synchronously in Node.js?

Learn how to use the existsSync() method from the filesystem module to check if a file exists synchronously in Node.js

Read
Node.js
How to change the permissions of a file synchronously using Node.js?

Learn how to use the chmodSync() method from the filesystem module to change the permissions of a file synchronously using Node.js

Read
Node.js
How to change the permissions of a file asynchronously using Node.js?

Learn how to use the chmod() method from the filesystem module to change the permissions of a file asynchronously using Node.js

Read
Node.js
How to watch a file for changes using Node.js?

Learn how use the watchFile() method from fs module to watch a file for changes using Node.js

Read
Node.js
How to show a prompt and get input from the command line in Node.js?

Learn how to use the readline module to show a prompt and get input from the command line in Node.js

Read
Node.js
How to get the uptime of the system using Node.js?

Learn how to use the uptime() method from the os module to get the uptime of system using Node.js

Read
Node.js
How to get the total memory of a system using Node.js?

Learn how to use the totalmem() method from the os module to get the total memory of a system using Node.js

Read
Node.js
How to get the path to the temporary files directory in Node.js?

Learn how to use the tmpdir() method from the os module to get the path to the temporary files directory in Node.js

Read
Node.js
Read more articles →