write-npmstat makes it easy to collect, filter and save npm statistics to csv files.
write-npmstat requires npm-stat-api
, enum
, csv-writer
, csv-parser
and node-fetch
packages.
npm install write-npmstat
const WriteNpmStat = require("write-npmstat").default;
const targetPackage = "npm-stat-api";
const csvDir = "stats/npm-stat-api";
const writenpmstat = new WriteNpmStat(targetPackage, csvDir);
writenpmstat.writeNpmStat("2021", "2022-03");
writenpmstat.datePeriod = "month";
writenpmstat.writeNpmStat("2022-01", "2022-04-15");
writenpmstat.writeLastWeekNpmStat();
Visit our documentation site for code reference or our wiki site for a step-by-step tutorial into write-npmstat.
We welcome contributions to the project, visit our contributing guide for further info.
Join our discussions page if you have any questions or comments.
Copyright © 2022.
Released under the Apache 2.0 License.