{"id":15048540,"url":"https://github.com/kinfe123/md-to-jsonify","last_synced_at":"2025-04-10T01:24:13.628Z","repository":{"id":219457319,"uuid":"749104412","full_name":"Kinfe123/md-to-jsonify","owner":"Kinfe123","description":"NPM package that dumps and converts your md table and other data format to json based format ","archived":false,"fork":false,"pushed_at":"2024-02-29T12:06:18.000Z","size":61,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T03:11:24.481Z","etag":null,"topics":["api","json","md"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Kinfe123.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"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-01-27T15:41:06.000Z","updated_at":"2024-10-12T00:11:45.000Z","dependencies_parsed_at":"2024-02-29T13:26:16.278Z","dependency_job_id":null,"html_url":"https://github.com/Kinfe123/md-to-jsonify","commit_stats":null,"previous_names":["kinfe123/md-to-json-based-api","kinfe123/md-to-jsonify"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kinfe123%2Fmd-to-jsonify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kinfe123%2Fmd-to-jsonify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kinfe123%2Fmd-to-jsonify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kinfe123%2Fmd-to-jsonify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kinfe123","download_url":"https://codeload.github.com/Kinfe123/md-to-jsonify/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248138844,"owners_count":21053966,"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":["api","json","md"],"created_at":"2024-09-24T21:13:47.941Z","updated_at":"2025-04-10T01:24:13.600Z","avatar_url":"https://github.com/Kinfe123.png","language":"JavaScript","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\n\nYou can find the full docs [here](https://md-jsonify.vercel.app)\n## Features \n\nIt comes with the following features out of the box and some unfinished tasks:\n\n\n- [x]  Write content using MDX.\n- [x]  Transform and validate content.\n- [x]  Optimize the iteration for converting the data.\n- [x]  Split out link in separate data feilds with ```link``` property.\n- [x]  Passed multiple edgecase for symbols that does have a meaning on markdown like ```[]``` , ```()```.\n- [x]  Numbering the links - ```linkX``` , while X being the number of links with a given row.\n- [x]  More is comming like - parsing the convetable data's from the entire md file \n- [x]  Custom Playground for testing out the stuff.\n\n- [x]  Parsing the table and other data format from md containing other stuff not only the data contents. but you can raise your approach proposal.\n- [ ]  Integrating with AI for curation.\n\n\n## Installation\n\n```bash \nnpm i md-to-jsonify\n```\n\n\n\n## Usage \n\n```jsx \n\n\n//extracting from markdown string\nimport {extract ,extractFromString , extractFromLink} from 'md-to-jsonify'\n\nconst result = extractFromString(markdownTable)\nconsole.log('The JSON data : ' , result)\n\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\n\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 \n\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\":\"JohPn'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\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkinfe123%2Fmd-to-jsonify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkinfe123%2Fmd-to-jsonify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkinfe123%2Fmd-to-jsonify/lists"}