{"id":24352169,"url":"https://github.com/proinsias/yaml-update-last-modified-date","last_synced_at":"2026-05-09T06:36:53.336Z","repository":{"id":185615808,"uuid":"629287873","full_name":"proinsias/yaml-update-last-modified-date","owner":"proinsias","description":"Automatically set the last modified date in YAML front matter of edited markdown files","archived":false,"fork":false,"pushed_at":"2024-05-07T22:09:42.000Z","size":84,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-08T14:42:24.654Z","etag":null,"topics":["jeykll","markdown","pre-commit","pre-commit-hook","yaml"],"latest_commit_sha":null,"homepage":"https://proinsias.github.io/yaml-update-last-modified-date/","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/proinsias.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-18T02:32:33.000Z","updated_at":"2024-05-07T22:09:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"e3493eab-964f-42d7-b466-8b5f375e10e4","html_url":"https://github.com/proinsias/yaml-update-last-modified-date","commit_stats":null,"previous_names":["proinsias/yaml-update-last-modified-date"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/proinsias/yaml-update-last-modified-date","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/proinsias%2Fyaml-update-last-modified-date","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/proinsias%2Fyaml-update-last-modified-date/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/proinsias%2Fyaml-update-last-modified-date/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/proinsias%2Fyaml-update-last-modified-date/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/proinsias","download_url":"https://codeload.github.com/proinsias/yaml-update-last-modified-date/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/proinsias%2Fyaml-update-last-modified-date/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32810036,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"online","status_checked_at":"2026-05-09T02:00:06.633Z","response_time":123,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":["jeykll","markdown","pre-commit","pre-commit-hook","yaml"],"created_at":"2025-01-18T15:39:32.919Z","updated_at":"2026-05-09T06:36:53.301Z","avatar_url":"https://github.com/proinsias.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# yaml-update-last-modified-date\n\nAutomatically set the last modified date in YAML front matter of edited markdown files.\n\n## Quick start\n\nJust `cd` into a folder containing a git repository, and run:\n\n```shell\ncurl --location --remote-name \\\n    https://raw.githubusercontent.com/proinsias/yaml-update-last-modified-date/main/yaml-update-last-modified-date \\\n\u0026\u0026 /usr/bin/env bash yaml-update-last-modified-date\n```\n\nThis script will:\n\n1. look for markdown files that differ from the current `HEAD`,\n2. check to see if they contain the specified last-modified-date variable (`last modified date` by default)\n   in their YAML front matter, if present, and\n3. update the value of that variable to the current Universal Time Coordinated (UTC) time.\n\nSee below for instructions on how to install this script as a local command or as a\n[pre-commit](https://github.com/pre-commit/pre-commit) git hook.\n\n## Table of Contents\n\n\u003c!-- toc --\u003e\n\n-   [Credits](#credits)\n-   [Updating the Table of Contents of this file](#updating-the-table-of-contents-of-this-file)\n\n\u003c!-- tocstop --\u003e\n\n## Installation yaml-update-last-modified-date via homebrew\n\nIf necessary, first install [homebrew](https://docs.brew.sh)!\n\nThen:\n\n```shell\nbrew install proinsias/yaml-update-last-modified-date/yaml-update-last-modified-date\n```\n\n## Using yaml-update-last-modified-date with pre-commit\n\nAdd this to your `.pre-commit-config.yaml`:\n\n```yaml\n- repo: https://github.com/proinsias/yaml-update-last-modified-date\n  rev: '' # Use the sha / tag you want to point at\n  hooks:\n      - id: yaml-update-last-modified-date\n```\n\n## Credits\n\nThanks to [Michael Rose](https://github.com/mmistakes) for the\n[original script](https://mademistakes.com/notes/adding-last-modified-timestamps-with-git/).\n\n## License\n\nSee [LICENSE](LICENSE).\n\n## Updating the Table of Contents of this file\n\nWe use [markdown-toc](https://github.com/jonschlinkert/markdown-toc)\nto automatically generate the table of contents for this file. You can\nupdate the TOC using:\n\n```bash\n# npm install --global markdown-toc\n\nmarkdown-toc -i README.md\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fproinsias%2Fyaml-update-last-modified-date","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fproinsias%2Fyaml-update-last-modified-date","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fproinsias%2Fyaml-update-last-modified-date/lists"}