The npm community forum has been discontinued.
To discuss usage of npm, visit the GitHub Support Community.
managing teams via registry API
I looked at:
github dot com /npm/registry/blob/master/docs/
and I see how a user’s role can be managed, but I don’t see a way to manage teams in the docs here.
Taking a look at npm cli => team.js it would seem that it’s the team route, and indeed, I can get that route (e.g., via
curl -s -H 'Authorization: Bearer xxxx' -XGET https://registry.npmjs.org/-/org/xyz/team
Is the API any better documented anywhere?
Ended up figuring this out
Specifically via looking at https://github.com/npm/npm-registry-client/blob/latest/lib/team.js and https://github.com/npm/cli/blob/latest/lib/team.js
But I really think that the API docs could be much better, as could those of npm-registry-client.