Create a new node module

From Bitpost wiki
Revision as of 18:52, 1 June 2016 by M (talk | contribs)
  • pick a name that doesn't yet exist on [npm.org] just to be safe
  • create a wiki page off of in-progress Projects
  • mkdir ~/development/websockets-tester
  • cd ~/development/websockets-tester
  • cp -rp ~/development/scripts/node/mah-haus/* .
  • subl index.js package.json # clean to use wst (our top-level command)
  • npm install --save ws # to install a local copy of any dependency under node_modules, and auto-add dependency to package.json
  • code your ass off
  • if it gets good... and is useful to others... publish it!