Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including npm-user-pkgs-scrapper with all npm packages installed. Try it out:

var npmUserPkgsScrapper = require("npm-user-pkgs-scrapper")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

npm-user-pkgs-scrapper v1.0.2

Get the packages created by specific npm user

Npm user packages scrapper

Node NPM Travis David Coverage Status npm

Small utility that scraps the packages of certain npm user. This means, packages publicly available created by the target user. It was built specifically as a helper library for my port-folio. Funnily it scraps itself as part of the portfolio generation.

The scrapped information includes

  • badges (if any)
  • package name
  • package specific url
  • package description (basically all readme paragraphs)


It only exports one function, that accepts an npm username as first parameter. The second optional parameter is a destination file where the scrapped information will be saved as a JSON file.

The function returns a promise that fulfills when scrap completes, with one of the following results:

  • If a destination parameter was provided, then the promise fulfills to the result of file saving.
  • If a destination parameter was not provided then the promise fulfills to an array of packages information.


RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free