Skip to content

Commit 9c1fbb8

Browse files
authored
Merge pull request #3 from veghdev/readme
README.md: fix example
2 parents 5971a2e + cc4846c commit 9c1fbb8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

+3-3
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)