npm-scrapper
v1.0.0
Published
A simple node based npm scrapper.
Downloads
4
Readme
npm-scrapper
a simple node script that scraps npm's official website.
Install
$ npm install npm-scrapper
Usage
const {
getProfile,
getPackage,
getUsedDependencies,
getMostDependedPackages
} = require("npm-scrapper");
// get a user's npm profile
getProfile("rocktimsaikia").then(res => {
console.log(res);
});
// get details of a specified npm package
getPackage("dependency-fetcher").then(res => {
console.log(res);
});
// get all the used dependencies of a npm package
getUsedDependencies("dependency-fetcher").then(res => {
console.log(res);
});
// get the top 10 most used/depended npm packages.
getMostDependedPackages().then(res => {
console.log(res);
});