node-worker-threads Different approaches to use worker threads in Node.js. Base - no worker threads node 1-base/main.js Separate files node 2-separate-files/main.js Promises node 3-promises/main.js Single file node 4-single-file/main.js Piscina cd 5-piscina npm install node main.js