Usually code bloat and additional maintenance overhead prevents us from publishing a NPM package. Written more of my opinion in a blog post. So, what do you think: When do you think we should publish a NPM package?
Adron Hall
Coder, Recon, Advocate, DataMonger
I have a personal checklist I go by before I publish anything to a community repository like NPM. I've followed in the past for Nuget and other private repositories too. For example I've posted libraries to internal organization repositories and it's a good idea to follow many of the same checklist items.
Basically, I ensure that there are certain gates the library must be moved through before I post the library. Otherwise it simply doesn't get published until it can meet the requirements to pass through those gates.