{"id":24081762,"url":"https://github.com/jonathanconway/diary","last_synced_at":"2025-10-24T07:19:28.422Z","repository":{"id":195443631,"uuid":"692915394","full_name":"jonathanconway/diary","owner":"jonathanconway","description":"Command line tool for generating Markdown-based diary files.","archived":false,"fork":false,"pushed_at":"2024-01-29T00:19:15.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-27T00:48:05.412Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/jonathanconway.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":"2023-09-18T00:40:05.000Z","updated_at":"2023-09-23T11:33:09.000Z","dependencies_parsed_at":"2024-01-29T01:59:17.063Z","dependency_job_id":"b82e77c9-4b4c-4d94-a74e-5a7ce9e869b4","html_url":"https://github.com/jonathanconway/diary","commit_stats":null,"previous_names":["jonathanconway/diary"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jonathanconway/diary","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathanconway%2Fdiary","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathanconway%2Fdiary/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathanconway%2Fdiary/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathanconway%2Fdiary/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonathanconway","download_url":"https://codeload.github.com/jonathanconway/diary/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathanconway%2Fdiary/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266624968,"owners_count":23958304,"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","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2025-01-09T23:26:13.570Z","updated_at":"2025-10-24T07:19:23.398Z","avatar_url":"https://github.com/jonathanconway.png","language":"TypeScript","readme":"# `diary`\n\nCommand line tool for generating Markdown-based diary files.\n\n## Installation\n\n```\ngit clone https://github.com/jonathanconway/diary\ncd diary\nnpm install\nnpm run build\nnpm install -g\n```\n\n## Usage\n\n### Syntax\n\n```\ndiary [branch|br|b]\n```\n\n### Creation of new diary file\n\nWhen run, no matter what parameters are passed, `diary` will generate a new diary file for today's date, if one does not already exist. If a diary file does already exist for today's date, `diary` will not overwrite it.\n\nDiary files are named in the format: `yyyymmdd.md`, where **yyyy** is the year, **mm** is the month and **dd** is the day. For example, if today is the 23rd of September 2023, then today's diary file will be named: `20230923.md`. On creation of a new diary file, the top-level heading is added in the format: `dd/MM/yyyy`. For example, `23/09/2023` for the date mentioned above.\n\n### `branch` command\n\nWhen the keyword `branch`, `br` or just `b` is used, the current git branch in the current directory is added as a 2nd-level heading.\n\nFor example, if the current directory is within a git repository and the current branch is: `feature/abc-123`, the following heading will be added to today's diary file:\n\n```\n## feature/abc-123\n```\n\nIf there is no git repository in the current directory, nothing happens.\n\n### `add` command\n\nWhen the keyword `add` or `a` is used, any text following it is added as a 2nd-level heading.\n\nFor example, given the following command:\n\n```\ndiary add \"Meeting with Joanna\"\n```\n\nThe following heading is added to today's diary:\n\n```\n## Meeting with Joanna\n```\n\n## Configuration\n\n## Templates\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonathanconway%2Fdiary","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonathanconway%2Fdiary","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonathanconway%2Fdiary/lists"}