Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get the email address of an owner of an npm package?

Tags:

node.js

npm

You used to be able to get the email address of an owner of an npm package via: GET https://registry.npmjs.org/-/user/org.couchdb.user:username

However, it is now responding with: 401 {"ok":false}

Any idea how to get it now?

like image 208
mavendev Avatar asked Dec 02 '25 04:12

mavendev


2 Answers

use npm view

This command shows data about a package and prints it

$ npm view couchdb _npmUser
nathan <[email protected]>

or

$ npm view couchdb maintainers.email
[email protected]
like image 116
Mr. Avatar answered Dec 04 '25 22:12

Mr.


You can also use npm owner ls if you want to list users who have access to modify a package and push new versions. It defaults to the package in the current directory (if any), and it also accepts an argument to list owners of the specified package, for example:

$ npm owner ls lodash
mathias <[email protected]>
jdalton <[email protected]>
bnjmnt4n <[email protected]>

https://docs.npmjs.com/cli/owner.html

like image 40
friederbluemle Avatar answered Dec 05 '25 00:12

friederbluemle