You can add the entry point to your package to the main
field in your package.json. This is what will be called when you do require('yourpackage')
.
See these links:
- at end of section 8.1 http://book.mixu.net/node/ch8.html
- under section
main
in https://npmjs.org/doc/json.html