Author: Kavit


How to include all files with npm publish?

You can specify which files and directory to include using files property in the package.json. npm publish includes files and directory specified in there.


Returning a value from a node child process

One can execute Linux, git shell commands from node script using node’s child process API like exec, execSync. But when you want to save the return value outside of the function scope, one must...