Right on the npm website, the very first sentence starts with “npm”, and they do not capitalize it.
That’s a pretty good precedent for not capitalizing it. It certainly looks awkward though, which is why I asked the question to begin with. It doesn’t feel right to me to start a sentence that way, and I’m sure other some other people would look at it and see a mistake.
If you’re following the Chicago Manual of Style, they would say:
This makes life difficult, however, for those of us who cannot bear to begin a sentence with a lowercase letter. CMOS forbids so doing (except for names like eBay)—we advise you to rewrite. Some publications simply ignore the preference.
“Rewriting”, as in, find a way not to start the sentence with the preferred-lowercase initialism.
Using npm … The npm package manager … Thanks to npm … Anything to keep it capitalized as intended while not breaking basic capitalization 😅