Quick tip for node modules

1 · Remy Sharp · April 12, 2018, 11:43 a.m.
When writing my node modules, I've come to really quite enjoy using Jest for testing (I've written about how I used tap and it's quite similar). Sometimes however, being able to execute the module on the command line and passing some arbitrary data can be pretty handy, and I've used the following technique on a growing handful of modules I've written....