shlogg · Early preview
Benjamin G. @ger-benjamin

Open Source GeoSpatial Developper working @camptocamp.

Node.js CLI Application Testing With Readline Module

Testing CLI apps with Node.js: Use `vitest` & `spyOn` to mock console.log, overload console.log to redirect output, or add a "debug" mode to store logs. Simulate writing with `stdin.emit('keypress')`. Debug with node --inspect and Webkit browser.