Posts

How to read environment variables in node js?

< 1 min readTo read environment variables in Node.js, you can use the process.env object. The process.env object contains a property for each of the environment variables that are available to the Node.js process. You can access the value of an environment variable using dot notation or bracket notation. Here’s an example of how you can read an…

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

How to show errors in php?

< 1 min readTo display PHP errors in your PHP scripts, you can use the error_reporting and ini_set functions. The error_reporting function sets the level of error reporting in your PHP scripts. You can use it to specify which types of errors you want to be reported. For example, to report all errors, you can use the following…

Read More