3 ms·
It looks like npm is confusing the download count with another package, 'd' (lowercase)[0]. I didn't realize that npm packages were case-sensitive, and apparent
by chrisfosterelli 10y ago
It looks like npm is confusing the download count with another package, 'd' (lowercase)[0]. I didn't realize that npm packages were case-sensitive, and apparently neither does their download counter!
Edit: Apparently there is a Github issue for this[1]
[0]: https://www.npmjs.com/package/d https://www.npmjs.com/package/d
[1]: https://github.com/npm/registry/issues/38 https://github.com/npm/registry/issues/38
- franciscop 10y agoAnd I think they aren't anymore. But they were back in the day, so for compatibility reasons they have to keep some of them that way. Edit: further evidence: when you mistype a name in lowercase such as https://www.npmjs.com/package/aaaaaaaaaabbb 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 https://www.npmjs.com/package/aaaaaaaaaabbB it just shows a 404
- chrisfosterelli 10y agoAh, that makes sense. Given that OSX and Windows are often case insensitive filesystems I could see that being a world of messy edge cases.