{"id":16213173,"url":"https://github.com/kinfe123/md-jsonify","last_synced_at":"2025-03-19T09:31:05.298Z","repository":{"id":220278851,"uuid":"751223223","full_name":"Kinfe123/md-jsonify","owner":"Kinfe123","description":"An optimized and optimal way of dumping your json compatible data from markdown data store content","archived":false,"fork":false,"pushed_at":"2024-02-21T16:00:56.000Z","size":5842,"stargazers_count":16,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-17T05:44:41.481Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://md-jsonify.vercel.app","language":"TypeScript","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/Kinfe123.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","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":"2024-02-01T07:10:24.000Z","updated_at":"2025-02-12T16:13:56.000Z","dependencies_parsed_at":"2024-10-27T20:29:03.792Z","dependency_job_id":"20778b17-7b93-492e-b01e-3897b863ed80","html_url":"https://github.com/Kinfe123/md-jsonify","commit_stats":null,"previous_names":["kinfe123/md-jsonify"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kinfe123%2Fmd-jsonify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kinfe123%2Fmd-jsonify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kinfe123%2Fmd-jsonify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kinfe123%2Fmd-jsonify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kinfe123","download_url":"https://codeload.github.com/Kinfe123/md-jsonify/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244398603,"owners_count":20446438,"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-10-10T10:54:55.816Z","updated_at":"2025-03-19T09:31:03.265Z","avatar_url":"https://github.com/Kinfe123.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# md-to-jsonify \n \nis npm package that helps you get the json data format out any data format like table , maps , anything that can be stored on key values pair for a sake of implementation.\n\nYou can find the npm package [here](https://github.com/Kinfe123/md-to-jsonify)\n\n\n## Installation\n\n```bash \nnpm i md-to-jsonify\n```\n\n\n\n## Usage \n\n```jsx \n\n\nimport {extract ,extractFromString , extractFromLink} from 'md-to-jsonify'\n\n//extracting from markdown string\nconst result = extractFromString(markdownTable)\nconsole.log('The JSON data : ' , result)\n\n\n// extracting from full text \nconst markDownString =  `\n# Title\n\nSome text...\n\n| Name  | Age | Email             |\n|-------|-----|-------------------|\n| Chandler  | 25  | john@example.com  |\n| Rose | 30  | alice@example.com |\n| Joey | 30  | alice@example.com |\n| Monica | 30  | alice@example.com |\n| Pheobe | 30  | alice@example.com |\n| Rachel | 30  | alice@example.com |\n| Chandler | 30  | alice@example.com |\n\nMore text...\n\n| ID | Product | Price |\n|----|---------|-------|\n| 1  | Apple   | $1.99 |\n| 2  | Orange  | $0.99 |\n`;\nconst result = extractFromFull(markDownString)\nconsole.log(\"The JSON data: \" ,result  )\n\n// extracting from the relative path in file system\nconst filepath = 'path/to/something.md'\nconst result = await extract(filepath)\nconsole.log('JSON data is : ' , result)\n\n\n\n// extracting from the link from github public api url \nconst apiUrl = \"https://api.github.com/repos/workos/awesome-developer-experience/git/blobs/{sha}\"\n// the way to get the this is by going to the url - https://api.github.com/repos/workos/awesome-developer-experience/git/trees/master\n// from the above link you will get the sha from the endpiont \nconst result = await extractFromLink(apiUrl)\nconsole.log('JSON data is: ' , result)\n```\n## Output\n\n```json\n[\n  {\"Name\":\"John\",\"Age\":\"25\",\"Country\":\"USA\",\"link\":\"https://example.com/john\",\"Website\":\"John's Website\"},\n  {\"Name\":\"Alice\",\"Age\":\"30\",\"Country\":\"Canada\",\"link\":\"https://example.com/alice\",\"Website\":\"Alice's Website\"}\n]\n```\n\n\n## Features \n\n\n\n## Contribution \n\nI really welcome any individual who wants to participate and contribute on this project to make more stable , raise an issue and let discuss on them or send pr , i will review it anyways\n\nif you want in great detail follow this [link](./CONTRIBUTING.md)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkinfe123%2Fmd-jsonify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkinfe123%2Fmd-jsonify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkinfe123%2Fmd-jsonify/lists"}