{"_id":"@brandonhimpfen/markdown-to-json","name":"@brandonhimpfen/markdown-to-json","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@brandonhimpfen/markdown-to-json","version":"1.0.0","description":"Convert Markdown files to JSON format","main":"markdownToJson.js","bin":{"markdown-to-json":"cli.js"},"scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/brandonhimpfen/markdown-to-json.git"},"keywords":["markdown","json","convert"],"author":{"name":"Brandon Himpfen"},"license":"MIT","bugs":{"url":"https://github.com/brandonhimpfen/markdown-to-json/issues"},"homepage":"https://github.com/brandonhimpfen/markdown-to-json#readme","dependencies":{"marked":"^5.1.0"},"gitHead":"55daeeac2001b928d95402986663512cdef3e9fe","_id":"@brandonhimpfen/markdown-to-json@1.0.0","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-bd6NowkZZyW/Vrs+4KzbYNir9yB+wAWzcKqeNk1Q10pFBTzgetOubi6mtfPmwCmGY6bMhSYBVDjWtrr2bpGf9g==","shasum":"7f6f0c87f608f8dfd88e534ef6ad844243aba7b4","tarball":"https://registry.npmjs.org/@brandonhimpfen/markdown-to-json/-/markdown-to-json-1.0.0.tgz","fileCount":7,"unpackedSize":4404,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCHIABLJsRkCIlw/Kd0gLOxFdei5CrKrJaybXSX8DfhcQIgHHYhwp1ejFFghfrgAvOOe14XXkQsudu3IkJHMWcIr4E="}]},"_npmUser":{"name":"brandonhimpfen","email":"brandon@himpfen.com"},"directories":{},"maintainers":[{"name":"brandonhimpfen","email":"brandon@himpfen.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/markdown-to-json_1.0.0_1687105484989_0.02104468085089084"},"_hasShrinkwrap":false}},"time":{"created":"2023-06-18T16:24:44.933Z","1.0.0":"2023-06-18T16:24:45.158Z","modified":"2023-06-18T16:24:45.330Z"},"maintainers":[{"name":"brandonhimpfen","email":"brandon@himpfen.com"}],"description":"Convert Markdown files to JSON format","homepage":"https://github.com/brandonhimpfen/markdown-to-json#readme","keywords":["markdown","json","convert"],"repository":{"type":"git","url":"git+https://github.com/brandonhimpfen/markdown-to-json.git"},"author":{"name":"Brandon Himpfen"},"bugs":{"url":"https://github.com/brandonhimpfen/markdown-to-json/issues"},"license":"MIT","readme":"# markdown-to-json\r\n\r\n## Usage\r\n\r\n### Command Line\r\n\r\nTo convert a Markdown file to JSON, use the following command-line interface:\r\n\r\n```\r\nnpx markdown-to-json path/to/markdown-file.md\r\n```\r\n\r\nReplace path/to/markdown-file.md with the actual file path of your Markdown file. The resulting JSON will be displayed in the console.\r\n\r\n### Programmatically\r\n\r\nYou can also use the markdown-to-json package programmatically in your Node.js projects.\r\n\r\nHere's an example of how to convert a Markdown file to JSON in your JavaScript code:\r\n\r\n```\r\nconst markdownToJson = require('markdown-to-json');\r\n\r\nconst filePath = 'path/to/markdown-file.md';\r\n\r\nmarkdownToJson(filePath, (err, json) => {\r\n  if (err) {\r\n    console.error('An error occurred:', err);\r\n  } else {\r\n    console.log(json);\r\n  }\r\n});\r\n```\r\n\r\nReplace 'path/to/markdown-file.md' with the actual file path of your Markdown file. The resulting JSON object will be passed to the callback function.\r\n\r\n## Features\r\n\r\n* Converts Markdown files to JSON format.\r\n* Preserves the structure and content of the Markdown file.\r\n* Supports headings, paragraphs, lists, and other Markdown elements.\r\n","readmeFilename":"README.md"}