Creates a directory with three files: index.js
, moduleName.js
, and moduleName.tests.js
. index.js
exports everything that exports moduleName.js
. moduleName.tests.js
is used for writing tests using tape
. node.js' require
function is used for exports.
Copy the script into /usr/local/bin
:
make install
Then, run with:
make-js-module <moduleName>
MIT