How to publish, best practice for publishing a module on npm registry?

Hello, would be nice to have an easy “how to” publish Titanium module on npm registry ?