{"id":13433362,"url":"https://github.com/easybird/json-to-frontmatter-markdown","last_synced_at":"2025-03-17T12:31:40.526Z","repository":{"id":57285374,"uuid":"128048593","full_name":"easybird/json-to-frontmatter-markdown","owner":"easybird","description":" Transform json to a markdown file with frontmatter and body","archived":false,"fork":false,"pushed_at":"2018-04-09T10:22:57.000Z","size":125,"stargazers_count":16,"open_issues_count":1,"forks_count":5,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-02-15T22:47:30.888Z","etag":null,"topics":["frontmatter","json","markdown","nodejs"],"latest_commit_sha":null,"homepage":null,"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/easybird.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":"2018-04-04T10:47:45.000Z","updated_at":"2024-07-26T02:09:41.000Z","dependencies_parsed_at":"2022-09-10T10:01:15.246Z","dependency_job_id":null,"html_url":"https://github.com/easybird/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/easybird%2Fjson-to-frontmatter-markdown","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easybird%2Fjson-to-frontmatter-markdown/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easybird%2Fjson-to-frontmatter-markdown/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easybird%2Fjson-to-frontmatter-markdown/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/easybird","download_url":"https://codeload.github.com/easybird/json-to-frontmatter-markdown/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244033792,"owners_count":20387000,"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":["frontmatter","json","markdown","nodejs"],"created_at":"2024-07-31T02:01:24.699Z","updated_at":"2025-03-17T12:31:39.974Z","avatar_url":"https://github.com/easybird.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\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        { 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\"]\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%2Feasybird%2Fjson-to-frontmatter-markdown","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feasybird%2Fjson-to-frontmatter-markdown","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feasybird%2Fjson-to-frontmatter-markdown/lists"}