{"id":15497413,"url":"https://github.com/heapwolf/timeseries-from-gitlog","last_synced_at":"2025-04-22T21:44:55.967Z","repository":{"id":66203359,"uuid":"136493544","full_name":"heapwolf/timeseries-from-gitlog","owner":"heapwolf","description":"Represent the git log as time-series data in JSON","archived":false,"fork":false,"pushed_at":"2018-07-24T12:14:36.000Z","size":6,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T19:11:12.329Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/heapwolf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-07T15:02:40.000Z","updated_at":"2022-10-25T00:16:30.000Z","dependencies_parsed_at":"2023-03-13T20:30:19.545Z","dependency_job_id":null,"html_url":"https://github.com/heapwolf/timeseries-from-gitlog","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heapwolf%2Ftimeseries-from-gitlog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heapwolf%2Ftimeseries-from-gitlog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heapwolf%2Ftimeseries-from-gitlog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heapwolf%2Ftimeseries-from-gitlog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heapwolf","download_url":"https://codeload.github.com/heapwolf/timeseries-from-gitlog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250330494,"owners_count":21412988,"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-02T08:33:32.994Z","updated_at":"2025-04-22T21:44:55.943Z","avatar_url":"https://github.com/heapwolf.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SYNOPSIS\nRepresent the git log as time-series data (JSON).\n\n## EXAMPLE\nGit log can be formatted, we can also add some stats about each commit,\nfor example, running `git log --format=%cI%n%s --shortstat` will give you...\n\n```\n2018-06-07T16:44:26+02:00\nadd readme\n\n 2 files changed, 93 insertions(+), 5 deletions(-)\n2018-06-04T19:18:13+02:00\nparse\n\n 1 file changed, 8 insertions(+), 1 deletion(-)\n2018-06-04T19:13:48+02:00\nfirst\n\n 1 file changed, 3 insertions(+)\n```\n\nThis is pretty easy to parse, and we end up with something like this...\n\n```js\n[ { date: '2018-06-07T16:44:26+02:00',\n    subject: 'add readme',\n    impact: { files: 2, insertions: 93, deletions: 5 } },\n  { date: '2018-06-04T19:18:13+02:00',\n    subject: 'parse',\n    impact: { files: 1, insertions: 8, deletions: 1 } },\n  { date: '2018-06-04T19:13:48+02:00',\n    subject: 'first',\n    impact: { files: 1, insertions: 3, deletions: 0 } } ]\n```\n\n# USAGE\nAll options are optional.\n\n```js\nconst ts = require('timeseries-from-gitlog')\n\nconst data = ts({\n  cwd: '', // current working directory to execute git in\n  limit: 1 // limit the number of logs that are parsed\n  skip // how many logs to skip when starting\n  mine: true, // only show commits from the current user\n  reverse: true, // start from the beginning\n  dateOnly: true, // gets '2018-06-04' instead of '2018-06-04T19:13:48+02:00'\n  since: '1 year ago' // relative time, see git docs for more info\n})\n\nconsole.log(data)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheapwolf%2Ftimeseries-from-gitlog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheapwolf%2Ftimeseries-from-gitlog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheapwolf%2Ftimeseries-from-gitlog/lists"}