22 points · by program · 9y ago · 32 comments
For example I contacted GitHub because I wanted an organization name for a company I'm registering in 2017. Their support looked at the organization, which had zero public or private repositories, told me they went beyond a time period of zero activity in which their name could be reclaimed by someone else and I got it (and no they didn't tell me the time period, it was just a vague statement regarding it).
NPM should look at these and if they've been empty for X amount of time, remove them. Now the problem is controlling new squatters so they may need to offer a more complex solution when a name returns to the pool but I think it needs to be done (I know names don't typically return to be re-used in NPM but if they're removing them for squatting I think they should).
As for why we don't automatically/proactively handle squatting: it's a very thorny problem. Whatever minimum standard we applied to count as "not squatting" could be trivially discovered and gamed, eventually resulting in people who wanted to squat on a name just publishing a copy of `express` or something to that name as a placeholder.
Relatedly: you can report offensive, or deliberately confusing package names ("typosquatting") and we will take those package names down permanently.
Stats
64,840 downloads in the last day
1,360,036 downloads in the last week
4,980,362 downloads in the last month
Why is this package so popular?Shouldn't NPM be able to determine the difference between packages that are in use and package squatting?
Edit: Apparently there is a Github issue for this[1]
[0]: https://www.npmjs.com/package/d [1]: https://github.com/npm/registry/issues/38
Edit: further evidence: when you mistype a name in lowercase such as https://www.npmjs.com/package/aaaaaaaaaabbb it gives you instructions on how to create the package with that name; however when you do with a name with a capital letter such as https://www.npmjs.com/package/aaaaaaaaaabbB it just shows a 404
Google searches would be so bad.
I am writing a blog post about the topic as well, I think NPM is doing a great job here.