Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
yunseorim1116 authored Mar 24, 2024
1 parent e8587a3 commit b9fab50
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,12 @@ const packages = ['a', 'b']
4. set the default option (one week from yesterday excluding the current date),
You can also optionally input the desired weekly unit (ex: Monday-Sunday).
5. Shows the total number of downloads for all packages.

# Example for Use
```javascript
(async () => {
const tracker = new DownloadTracker(PACKAGES, 12);
//The first argument is an array of package names, the second argument is the desired number of weeks
const datas = await tracker.start();
console.log(datas);
})();

0 comments on commit b9fab50

Please sign in to comment.