We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 386e31b + 9ad00f8 commit 6920bb6Copy full SHA for 6920bb6
README.md
@@ -18,12 +18,14 @@ npm install write-npmstat
18
```js
19
const WriteNpmStat = require("write-npmstat").default;
20
21
-const packageName = "npm-stat-api";
22
-const outDir = "stats/npm-stat-api";
23
-const writenpmstat = new WriteNpmStat(packageName, outDir);
+const targetPackage = "npm-stat-api";
+const csvDir = "stats/npm-stat-api";
+const writenpmstat = new WriteNpmStat(targetPackage, csvDir);
24
+
25
+writenpmstat.writeNpmStat("2021", "2022-03");
26
27
writenpmstat.datePeriod = "month";
-writenpmstat.writeNpmStat("2022", "2022-03");
28
+writenpmstat.writeNpmStat("2022-01", "2022-04-15");
29
```
30
31
# Contributing
0 commit comments