NPM Profile Aggregator
Node and Browser Compatible, use it anywhere.
Want to test it out?
Checkout the Demo which searches via text input or url params
or drop it into the window using this script
npm install npm-profile-aggregator --save
One API method to aggregate NPM stats
Everything is pre-bundled into one function
const fetch = ;const npmUserName = 'tom123';;
// Response Schema is broken down into 2 main sections, author and modulesauthor:// NOTE: Total Aggregate Module Downloadsdownloads:lastDay: NumberlastWeek: NumberlastMonth: Numberlink: Stringusername: Stringmodules:name: Stringdescription: Stringversion: Stringdownloads:lastDay: NumberlastWeek: NumberlastMonth: Number// NOTE: + Everything else available in package.jsonengines: Objectrepository: Objectmaintainers: Arraycontributors: Arrayscripts: Objectkeywords: Array...etc...
The main function aggregates various NPM endpoints in parallel.
It's also failsafe, so if an API call fails, you'll always get something back in accordance to the Response Payload Schema