Hacker News new | ask | show | jobs
by politelemon 1577 days ago
The NPM registry's API documentation seems to be wrong, or deliberately semi-vague, as well. It states (emphasis mine)

> maintainers: and array of objects containing author objects as listed in package.json

> author: object with name, email, and or url of author as listed in package.json

However, the email address against the user's profile gets listed even if your package.json does not contain an email address.

Example: https://registry.npmjs.org/leftpad/

2 comments

The registry's docs are famously incorrect and out of date. I don't have the time to enumerate all of them that are incorrect, but a great example are the docs around claiming dead or abandoned packages and orgs - that document is still discoverable via Google, and last I checked, was still on the main docs site.
leftpad != left-pad

Tom MacWright's email - https://registry.npmjs.org/leftpad/

azer - https://registry.npmjs.org/left-pad/