From b9fab50b6138bcf21cd780d9a15a428bda76d602 Mon Sep 17 00:00:00 2001 From: seorim <94429667+yunseorim1116@users.noreply.github.com> Date: Sun, 24 Mar 2024 15:07:44 +0900 Subject: [PATCH] Update README.md --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index c51bf4a..cc987f9 100644 --- a/README.md +++ b/README.md @@ -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); +})();