How to parse JSON in Node js?

< 1 min readTo parse a JSON string in Node.js, you can use the JSON.parse() function. This function takes a JSON string as an argument and returns a JavaScript object or array constructed from the JSON string. Here’s an example of how to parse a JSON string: In this example, we parse a JSON string that represents an…

Read More

How to do Base64 encoding in Node.js?

< 1 min readTo Base64-encode a string in Node.js, you can use the Buffer class and its .toString() method. Here’s an example: You can also use the Buffer.from() method to decode a Base64-encoded string: Alternatively, you can use the built-in Buffer global and the .toString() method to achieve the same results: Note: The Buffer class was designed to…

Read More

What is the –save option for npm install?

< 1 min readThe –save option for npm install is used to save the installed package as a dependency in the package.json file of the project. By default, npm install installs a package in the local node_modules directory, but does not update the dependencies section of the package.json file. This means that the installed package will not be…

Read More
NextJs TailwindCSS SCSS

Next.Js boilerplate with TailwindCss and SASS

4 min readIt’s no secret that creating single-page JavaScript applications can be pretty challenging these days. Fortunately, there are multiple frameworks and libraries to choose from. Nextjs is an awesome framework built by Zeit to create Web Applications. It has many great features and advantages, which can make NextJS your first choice for building your next web application. Instead of…

Read More