I was comparing the time I used to publish my first npm package and the time for Clojars. Publishing to Clojars can be simple if there’s very friendly guide or a very simple tool described by @thheller , but it took me long time in reality despite that I have several years of experience of using JavaScript.
Check this Publishing Your First Package to npm
Publish the Package!
And now, the moment you’ve been waiting for – publishing your package for the whole world to see!
If this is indeed your first package, you’ll need to register on npm by running
npm adduser. If you’re already registered on npm, usenpm logininstead.Here comes the big one:
npm publishThis one might take a few seconds, but once it’s done – so are you!
Congratulations! You just published your first npm package like a boss! Go ahead and run
npm install is-null-or-emptyand attempt to use your package in another project! =)