Skip to content

Commit 6920bb6

Browse files
authored
Merge pull request #30 from veghdev/readme
README.md: update example
2 parents 386e31b + 9ad00f8 commit 6920bb6

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,14 @@ npm install write-npmstat
1818
```js
1919
const WriteNpmStat = require("write-npmstat").default;
2020

21-
const packageName = "npm-stat-api";
22-
const outDir = "stats/npm-stat-api";
23-
const writenpmstat = new WriteNpmStat(packageName, outDir);
21+
const targetPackage = "npm-stat-api";
22+
const csvDir = "stats/npm-stat-api";
23+
const writenpmstat = new WriteNpmStat(targetPackage, csvDir);
24+
25+
writenpmstat.writeNpmStat("2021", "2022-03");
2426

2527
writenpmstat.datePeriod = "month";
26-
writenpmstat.writeNpmStat("2022", "2022-03");
28+
writenpmstat.writeNpmStat("2022-01", "2022-04-15");
2729
```
2830

2931
# Contributing

0 commit comments

Comments
 (0)