I would like to create a module for nodejs that can be used standalone. The module source is literally just JavaScript files that are executed using nodejs.
I am not sure exactly how this would work, but essentially:
npm install mymodule
node mymodule inputfile
or better
mymodule inputfile
How would this work?
There’s an excellent guide for writing modules on how to node.
Jade is a great example of executable module.