Get all files in a folder using Node Js

December 01, 2022🍿 1 min read

To get all files in a folder and its sub-folders recursively using Node.js, you can use the fs.readdirSync() method in the fs module.

Continue reading

How to select fields in a document in MongoDB

January 05, 2020🍿 2 min read

MongoDB is really easy to work with. Today, we will see how to select only few fields out of a large document using mongo query

Continue reading

How to revert back to older commit in git

January 02, 2020🍿 2 min read

We always want to go back in git history. Aren't we?. We will learn the trick to do so

Continue reading

Do you know spread operator in Javascript object is mutable?

December 30, 2019🍿 2 min read

Spread operator becomes the defacto solution for creating immutable object in javascript. But make sure to have the caution, spread operator does mutate objects in specific cases. We will see it briefly.

Continue reading

How to find a document in mongo using partial value of a field

November 15, 2019🍿 1 min read

It's very easy to find a document in mongoDB by value, but do you know how easy is to find a document using case insensitive string

Continue reading

How to find a document in a mongo collection based on whether a field exists or not

October 29, 2019🍿 1 min read

In NoSQL, you can save different document in a single collection. Now if you want to find documents with specific field, how do you find that? There is an easy way, we will see it in example.

Continue reading

How to rename local and remote branch in git

October 16, 2019🍿 1 min read

Often, we want to rename the branch in Git. Totally we will see, one of the easiest way to do it for both local and remote branch

Continue reading

Learn how to handle nested routes and nested content using react router

October 03, 2019🍿 6 min read

Most of the SaaS single page applications have nested routes. We will see how to build nested routes in a react application using react router library

Continue reading

Wanna become a Pro Engineer!

Weekly, practical advice on how to become a better Engineer. Read by 210+ engineers, managers, and founders.

Made with ❤️ in Tallinn, Estonia

Paramanantham Harrison's DEV Profile