{"id":16505311,"url":"https://github.com/veghdev/write-npmstat","last_synced_at":"2025-07-20T21:32:56.234Z","repository":{"id":40468601,"uuid":"486087126","full_name":"veghdev/write-npmstat","owner":"veghdev","description":"write-npmstat makes it easy to collect, filter and save npm statistics to csv files.","archived":false,"fork":false,"pushed_at":"2022-09-26T07:40:44.000Z","size":424,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-06T18:06:37.264Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/veghdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null}},"created_at":"2022-04-27T07:18:04.000Z","updated_at":"2022-04-28T14:23:33.000Z","dependencies_parsed_at":"2022-08-09T21:20:49.120Z","dependency_job_id":null,"html_url":"https://github.com/veghdev/write-npmstat","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/veghdev/write-npmstat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veghdev%2Fwrite-npmstat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veghdev%2Fwrite-npmstat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veghdev%2Fwrite-npmstat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veghdev%2Fwrite-npmstat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/veghdev","download_url":"https://codeload.github.com/veghdev/write-npmstat/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veghdev%2Fwrite-npmstat/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266204514,"owners_count":23892362,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T15:10:31.381Z","updated_at":"2025-07-20T21:32:56.215Z","avatar_url":"https://github.com/veghdev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![npm version](https://badge.fury.io/js/write-npmstat.svg)](https://badge.fury.io/js/write-npmstat)\n[![CI](https://github.com/veghdev/write-npmstat/workflows/CI/badge.svg?branch=main)](https://github.com/veghdev/write-npmstat/actions/workflows/ci.yml)\n\n\n# About The Project\n\nwrite-npmstat makes it easy to collect, filter and save npm statistics to csv files.\n\n# Installation\n\nwrite-npmstat requires `npm-stat-api`, `enum`, `csv-writer`, `csv-parser` and `node-fetch` packages.\n\n```sh\nnpm install write-npmstat\n```\n\n# Usage\n\n```js\nconst WriteNpmStat = require(\"write-npmstat\").default;\n\nconst targetPackage = \"npm-stat-api\";\nconst csvDir = \"stats/npm-stat-api\";\nconst writenpmstat = new WriteNpmStat(targetPackage, csvDir);\n\nwritenpmstat.writeNpmStat(\"2021\", \"2022-03\");\n\nwritenpmstat.datePeriod = \"month\";\nwritenpmstat.writeNpmStat(\"2022-01\", \"2022-04-15\");\n\nwritenpmstat.writeLastWeekNpmStat();\n```\n\nVisit our [documentation](https://veghdev.github.io/write-npmstat/) site for code reference or \nour [wiki](https://github.com/veghdev/write-npmstat/wiki/) site for a step-by-step tutorial into write-npmstat.\n\n# Contributing\n\nWe welcome contributions to the project, visit our [contributing](https://github.com/veghdev/write-npmstat/blob/main/CONTRIBUTING.md) guide for further info.\n\n# Contact\n\nJoin our [discussions](https://github.com/veghdev/write-npmstat/discussions) page if you have any questions or comments.\n\n# License\n\nCopyright © 2022.\n\nReleased under the [Apache 2.0 License](https://github.com/veghdev/write-npmstat/blob/main/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fveghdev%2Fwrite-npmstat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fveghdev%2Fwrite-npmstat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fveghdev%2Fwrite-npmstat/lists"}