Skip to content

Commit cc4846c

Browse files
committed
README.md: fix example
fix #2
1 parent 5971a2e commit cc4846c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ npm install write-npmstat
1313
# Usage
1414

1515
```js
16-
const WriteNpmStat = require("write-npmstat");
16+
const WriteNpmStat = require("write-npmstat").default;
1717

18-
packageName = "npm-stat-api"
19-
outDir = "stats/npm-stat-api"
18+
const packageName = "npm-stat-api";
19+
const outDir = "stats/npm-stat-api";
2020
const writenpmstat = new WriteNpmStat(packageName, outDir);
2121

2222
writenpmstat.datePeriod = "month";

0 commit comments

Comments
 (0)