{"id":18282949,"url":"https://github.com/zentered/frontformatter","last_synced_at":"2025-10-25T18:31:15.828Z","repository":{"id":40752805,"uuid":"298628465","full_name":"zentered/frontformatter","owner":"zentered","description":"Bulk transform markdown frontmatter","archived":false,"fork":false,"pushed_at":"2024-06-13T23:49:23.000Z","size":1197,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-07T05:44:08.057Z","etag":null,"topics":["jamstack","static-site","webdev"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zentered.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2020-09-25T16:43:45.000Z","updated_at":"2025-01-26T14:51:43.000Z","dependencies_parsed_at":"2023-02-06T05:30:57.089Z","dependency_job_id":"7d8921f5-4105-4cc2-9ea6-47732751c156","html_url":"https://github.com/zentered/frontformatter","commit_stats":{"total_commits":24,"total_committers":2,"mean_commits":12.0,"dds":"0.41666666666666663","last_synced_commit":"d96b69a37c4d47f4ae091310aeb18bb3ebae2dba"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zentered%2Ffrontformatter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zentered%2Ffrontformatter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zentered%2Ffrontformatter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zentered%2Ffrontformatter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zentered","download_url":"https://codeload.github.com/zentered/frontformatter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238195473,"owners_count":19432098,"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":["jamstack","static-site","webdev"],"created_at":"2024-11-05T13:06:47.779Z","updated_at":"2025-10-25T18:31:10.502Z","avatar_url":"https://github.com/zentered.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Test](https://github.com/zentered/frontformatter/workflows/Test/badge.svg)\n![Semantic Release](https://github.com/zentered/frontformatter/workflows/Semantic%20Release/badge.svg?branch=main)\n[![view on npm](https://img.shields.io/npm/v/frontformatter.svg)](https://www.npmjs.org/package/frontformatter)\n\n# Front Formatter\n\nIf you work with [hugo](https://gohugo.io), [11ty](https://www.11ty.dev) or any other static site generator, you'll likely end up with a lot of Markdown files after a while.\n\nThis script helps to migrate, add or remove properties from Markdwon frontmatter.\n\n## Usage\n\nSpecify a source folder or copy your markdown files into `src`. You can define properties to add and remove, then run the transformation function:\n\n    const frontformatter = require('./frontformatter')\n\n    const addProperties = {\n      add: 'this'\n    }\n    const removeProperties = ['remove']\n\n    const markdownOptions = {\n      resultVersion: 3,\n      'first-line-heading': 2,\n      'no-empty-links': true\n    }\n\n    frontformatter('src', addProperties, removeProperties, markdownOptions)\n\n\n## Acknowledgments\n\nThanks to [Jon Schlinkert](https://github.com/jonschlinkert) for [gray-matter](https://github.com/jonschlinkert/gray-matter)\n\n## Licence\n\nLicensed under [MIT](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzentered%2Ffrontformatter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzentered%2Ffrontformatter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzentered%2Ffrontformatter/lists"}