{"id":13565344,"url":"https://github.com/quoid/json-to-frontmatter-markdown","last_synced_at":"2025-10-04T10:30:52.344Z","repository":{"id":51509264,"uuid":"365804436","full_name":"quoid/json-to-frontmatter-markdown","owner":"quoid","description":" Transform json to a markdown file with frontmatter and body","archived":false,"fork":true,"pushed_at":"2021-10-21T20:04:22.000Z","size":174,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-19T21:06:28.911Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"easybird/json-to-frontmatter-markdown","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/quoid.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}},"created_at":"2021-05-09T16:59:39.000Z","updated_at":"2024-07-26T02:21:45.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/quoid/json-to-frontmatter-markdown","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/quoid%2Fjson-to-frontmatter-markdown","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quoid%2Fjson-to-frontmatter-markdown/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quoid%2Fjson-to-frontmatter-markdown/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quoid%2Fjson-to-frontmatter-markdown/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/quoid","download_url":"https://codeload.github.com/quoid/json-to-frontmatter-markdown/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235238062,"owners_count":18958041,"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-08-01T13:01:45.047Z","updated_at":"2025-10-04T10:30:51.985Z","avatar_url":"https://github.com/quoid.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# json-to-frontmatter-markdown\n\nThis library has only one feature:\nTransform a javascript object to markdown with frontmatter, and write it to a markdown file on a specified location.\n-----\n\n\u003e The only difference between this and [easybird/json-to-frontmatter-markdown](https://github.com/easybird/json-to-frontmatter-markdown) is that numbers are **not** converted when transforming.\n\nThe following request, will result in the below markdown file on location /Users/user/path/to/dir/fileName.md:\n```javascript\n  transformAndWriteToFile({\n    frontmatterMarkdown: {\n      frontMatter: [\n        { var1: 'this is a string'},\n        { var2: ['this is an array', 'element2']},\n        { num1: 23 },\n        { obj1: {\n          var3: \"var3\"\n        }},\n      ],\n      body: `\n        # h1 Heading 8-)\n        ## h2 Heading\n        ### h3 Heading\n        #### h4 Heading\n        ##### h5 Heading\n        ###### h6 Heading\n        `\n      },\n      path: '/Users/user/path/to/dir',\n      fileName: 'fileName.md'\n    })\n```  \n\nResult:\n```markdown\n---\nvar1: \"this is a string\"\nvar2: [\"this is an array\",\"element2\"]\nnum1: 23\nobj1:\n  var3: \"var3\"\n---\n# h1 Heading 8-)\n## h2 Heading\n### h3 Heading\n#### h4 Heading\n##### h5 Heading\n###### h6 Heading\n```\n\n----\nIf you have a feature request or issues, don't hesitate to log an issue.🙏\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquoid%2Fjson-to-frontmatter-markdown","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquoid%2Fjson-to-frontmatter-markdown","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquoid%2Fjson-to-frontmatter-markdown/lists"}