Using process.stdout.isTTY you can tailor your Node.js script output to the environment it will go to.
Topic: NodeJS โ Page 6
Reference values defined inside of the package.json in your npm scripts to avoid duplication.
The NPM_CONFIG_PRODUCTION flag will lead to changed behavior of
npm install
but also set the NODE_ENV environment variable to production.Today I discovered that you can pipe scripts into the Node.js binary
Anna Henningsen teaches Stefan how to use worker threads in Node.js.