https://github.com/veghdev/write-jsdelivrstat
write-jsdelivrstat makes it easy to collect, filter and save jsdelivr statistics to csv files.
https://github.com/veghdev/write-jsdelivrstat
Last synced: 8 months ago
JSON representation
write-jsdelivrstat makes it easy to collect, filter and save jsdelivr statistics to csv files.
- Host: GitHub
- URL: https://github.com/veghdev/write-jsdelivrstat
- Owner: veghdev
- License: apache-2.0
- Created: 2022-05-03T14:14:48.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-06T09:46:17.000Z (about 4 years ago)
- Last Synced: 2025-10-22T01:24:09.455Z (8 months ago)
- Language: JavaScript
- Size: 383 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
[](https://badge.fury.io/js/write-jsdelivrstat)
[](https://github.com/veghdev/write-jsdelivrstat/actions/workflows/ci.yml)
# About The Project
write-jsdelivrstat makes it easy to collect, filter and save jsdelivr statistics to csv files.
# Installation
write-jsdelivrstat requires `enum`, `csv-writer`, `csv-parser` and `node-fetch` packages.
```sh
npm install write-jsdelivrstat
```
# Usage
```js
const WriteJsdelivrStat = require("write-jsdelivrstat").default;
const targetPackage = "npm-stat-api";
const csvDir = "stats/npm-stat-api";
const writejsdelivrstat = new WriteJsdelivrStat(targetPackage, csvDir);
writejsdelivrstat.writeJsdelivrStat("2021", "2022-03");
writejsdelivrstat.datePeriod = "month";
writejsdelivrstat.writeJsdelivrStat("2022-01", "2022-04-15");
```
Visit our [documentation](https://veghdev.github.io/write-jsdelivrstat/) site for code reference or
our [wiki](https://github.com/veghdev/write-jsdelivrstat/wiki/) site for a step-by-step tutorial into write-jsdelivrstat.
# Contributing
We welcome contributions to the project, visit our [contributing](https://github.com/veghdev/write-jsdelivrstat/blob/main/CONTRIBUTING.md) guide for further info.
# Contact
Join our [discussions](https://github.com/veghdev/write-jsdelivrstat/discussions) page if you have any questions or comments.
# License
Copyright © 2022.
Released under the [Apache 2.0 License](https://github.com/veghdev/write-jsdelivrstat/blob/main/LICENSE).