Search code examples
npm

How can I get all npm packages owned by a user?


Is there a way to get a list of npm packages owned by a user?

Something like this: https://www.npmjs.com/~npm but in json from the command line or api


Solution

  • You could install npm-user-packages-cli globally.

    $ npm install --global npm-user-packages-cli
    

    Then you can do:

    $ npm-user-packages <username>
    

    I've used it locally, and it does exactly what you asked.