{"_id":"@chatwoot/markdown-to-txt","_rev":"3-a25b76617d3bb693203938834d8c4e61","name":"@chatwoot/markdown-to-txt","dist-tags":{"latest":"2.0.4"},"versions":{"2.0.1":{"name":"@chatwoot/markdown-to-txt","version":"2.0.1","keywords":["markdown","remove","txt","plain","text"],"author":{"url":"root@ejrbuss.net","name":"Eric Buss"},"license":"MIT","_id":"@chatwoot/markdown-to-txt@2.0.1","maintainers":[{"name":"muhsin-k","email":"muhsin@chatwoot.com"},{"name":"sivin","email":"iamsivin@gmail.com"},{"name":"pranavrajs","email":"pranavrajs@gmail.com"},{"name":"scmmishra","email":"shivam@shivam.dev"}],"homepage":"https://github.com/ejrbuss/markdown-to-txt#readme","bugs":{"url":"https://github.com/ejrbuss/markdown-to-txt/issues"},"dist":{"shasum":"2ec92c2884a0f7064bf53d791fde6092661610b0","tarball":"https://registry.npmjs.org/@chatwoot/markdown-to-txt/-/markdown-to-txt-2.0.1.tgz","fileCount":12,"integrity":"sha512-tHHLMcZ76LQqpibsyvjcNZSufcU2y3z0lJHNnKp6mizx4MHLhpXuH3bMBjrGZiPCOE8ze5tiRyS2IQro4Ren/Q==","signatures":[{"sig":"MEQCICOc6x4kB4SwFW8fENuL3FqyvU6GgrgCYWQntGEqF3n7AiAZJonr3eJBiNeJkgd9EDssjIKIqUh0GvWya78DfVKvJQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20550},"main":"./dist/markdown-to-txt.js","types":"./dist/markdown-to-txt.d.ts","gitHead":"c557a27e4232d534820513dce74e1753aa4dc67e","scripts":{"test":"jest","build":"tsc"},"_npmUser":{"name":"muhsin-k","email":"muhsin@chatwoot.com"},"repository":{"url":"git+https://github.com/ejrbuss/markdown-to-txt.git","type":"git"},"_npmVersion":"9.8.0","description":"Convert markdown to plain text","directories":{},"_nodeVersion":"20.5.1","dependencies":{"marked":"^4.0.14","lodash.escape":"^4.0.1","lodash.unescape":"^4.0.1"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^27.3.1","ts-jest":"^27.0.7","typescript":"^4.4.4","@types/jest":"^27.0.2","@types/marked":"^4.0.3","@types/lodash.escape":"^4.0.6","@types/lodash.unescape":"^4.0.6"},"_npmOperationalInternal":{"tmp":"tmp/markdown-to-txt_2.0.1_1732766531375_0.7911097967040142","host":"s3://npm-registry-packages"}},"2.0.2":{"name":"@chatwoot/markdown-to-txt","version":"2.0.2","keywords":["markdown","remove","txt","plain","text"],"author":{"url":"root@ejrbuss.net","name":"Eric Buss"},"license":"MIT","_id":"@chatwoot/markdown-to-txt@2.0.2","maintainers":[{"name":"muhsin-k","email":"muhsin@chatwoot.com"},{"name":"sivin","email":"iamsivin@gmail.com"},{"name":"pranavrajs","email":"pranavrajs@gmail.com"},{"name":"scmmishra","email":"shivam@shivam.dev"}],"homepage":"https://github.com/ejrbuss/markdown-to-txt#readme","bugs":{"url":"https://github.com/ejrbuss/markdown-to-txt/issues"},"dist":{"shasum":"5033ef203786317a96733fdba24f57f9bbfcb4e0","tarball":"https://registry.npmjs.org/@chatwoot/markdown-to-txt/-/markdown-to-txt-2.0.2.tgz","fileCount":12,"integrity":"sha512-G1xDB/lA5O3XHc5cbk0++02svRfOyHE2YdfyN7WTbwVGbrF36FY3ia5k/AvXb5Kz/vQHerjuD4CvkG26HfLDPw==","signatures":[{"sig":"MEUCIQCeIdAPBaUr1LXLtLuwuq0fFapM0ActYLqSCD0bmY2n7gIgMznrYGYlAsXUdw4HLh53eUAbeG9bLFPHmAkddlHq4EA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20542},"main":"./dist/markdown-to-txt.js","types":"./dist/markdown-to-txt.d.ts","gitHead":"019df5654c3938055a6bacbdd76beec701ebb802","scripts":{"test":"jest","build":"tsc"},"_npmUser":{"name":"muhsin-k","email":"muhsin@chatwoot.com"},"repository":{"url":"git+https://github.com/ejrbuss/markdown-to-txt.git","type":"git"},"_npmVersion":"9.8.0","description":"Convert markdown to plain text","directories":{},"_nodeVersion":"20.5.1","dependencies":{"marked":"^4.0.14","lodash.escape":"^4.0.1","lodash.unescape":"^4.0.1"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^27.3.1","ts-jest":"^27.0.7","typescript":"^4.4.4","@types/jest":"^27.0.2","@types/marked":"^4.0.3","@types/lodash.escape":"^4.0.6","@types/lodash.unescape":"^4.0.6"},"_npmOperationalInternal":{"tmp":"tmp/markdown-to-txt_2.0.2_1733209107314_0.21394851165656714","host":"s3://npm-registry-packages"}},"2.0.3":{"name":"@chatwoot/markdown-to-txt","version":"2.0.3","keywords":["markdown","remove","txt","plain","text"],"author":{"url":"root@ejrbuss.net","name":"Eric Buss"},"license":"MIT","_id":"@chatwoot/markdown-to-txt@2.0.3","maintainers":[{"name":"muhsin-k","email":"muhsin@chatwoot.com"},{"name":"sivin","email":"iamsivin@gmail.com"},{"name":"pranavrajs","email":"pranavrajs@gmail.com"},{"name":"scmmishra","email":"shivam@shivam.dev"}],"homepage":"https://github.com/ejrbuss/markdown-to-txt#readme","bugs":{"url":"https://github.com/ejrbuss/markdown-to-txt/issues"},"dist":{"shasum":"c57744b0fca6779c09f315038a707965c1228d1a","tarball":"https://registry.npmjs.org/@chatwoot/markdown-to-txt/-/markdown-to-txt-2.0.3.tgz","fileCount":12,"integrity":"sha512-oxDCr9SjANO/GMTPk+NHUh0DuBH4cBBfQVE+8W4nojUWfTyAqKBONIeEckueQj++keMJi5i2/zUW6suyo0U9Bw==","signatures":[{"sig":"MEYCIQCoy+CSAX6ApgjOfuhOPU1KY5IJMGLNw0/cb0/G6T2JRgIhAPwU1s7Wdbaq+32Q95mCE0s1+i+Ds7F1yc+aUWb/JwmI","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20526},"main":"./dist/markdown-to-txt.js","types":"./dist/markdown-to-txt.d.ts","gitHead":"6cb3a197a3742647754ca64c28cde30107e1dce1","scripts":{"test":"jest","build":"tsc"},"_npmUser":{"name":"muhsin-k","email":"muhsin@chatwoot.com"},"repository":{"url":"git+https://github.com/ejrbuss/markdown-to-txt.git","type":"git"},"_npmVersion":"9.8.0","description":"Convert markdown to plain text","directories":{},"_nodeVersion":"20.5.1","dependencies":{"marked":"^4.0.14","lodash.escape":"^4.0.1","lodash.unescape":"^4.0.1"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^27.3.1","ts-jest":"^27.0.7","typescript":"^4.4.4","@types/jest":"^27.0.2","@types/marked":"^4.0.3","@types/lodash.escape":"^4.0.6","@types/lodash.unescape":"^4.0.6"},"_npmOperationalInternal":{"tmp":"tmp/markdown-to-txt_2.0.3_1733336949244_0.6004653552216508","host":"s3://npm-registry-packages"}},"2.0.4":{"name":"@chatwoot/markdown-to-txt","version":"2.0.4","description":"Convert markdown to plain text","main":"./dist/markdown-to-txt.js","types":"./dist/markdown-to-txt.d.ts","scripts":{"build":"tsc","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/ejrbuss/markdown-to-txt.git"},"keywords":["markdown","remove","txt","plain","text"],"author":{"name":"Eric Buss","url":"root@ejrbuss.net"},"license":"MIT","bugs":{"url":"https://github.com/ejrbuss/markdown-to-txt/issues"},"homepage":"https://github.com/ejrbuss/markdown-to-txt#readme","devDependencies":{"@types/jest":"^27.0.2","@types/lodash.escape":"^4.0.6","@types/lodash.unescape":"^4.0.6","@types/marked":"^4.0.3","jest":"^27.3.1","ts-jest":"^27.0.7","typescript":"^4.4.4"},"dependencies":{"lodash.escape":"^4.0.1","lodash.unescape":"^4.0.1","marked":"^4.0.14"},"_id":"@chatwoot/markdown-to-txt@2.0.4","gitHead":"4831d09eaf2b5b2b0990deb9159ec956d2f95fe8","_nodeVersion":"20.5.1","_npmVersion":"9.8.0","dist":{"integrity":"sha512-gs5ybjESLH8L4Nuu7pjxwXQEVKvHzJzJj2Gf8X4b4C3zp4nBIuJVhSwwuR/22Vd2bVB5rEDWXH+xV0QWV1ZOfA==","shasum":"d5cb5b653b1edb19f51afa44391a06ebd1389695","tarball":"https://registry.npmjs.org/@chatwoot/markdown-to-txt/-/markdown-to-txt-2.0.4.tgz","fileCount":12,"unpackedSize":21156,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCnT+6IpQQxtHhSS6FTo0nflbu2Hv8WxFU+YquhcBr63QIhAPVIUUt5BI8fwWeM9Qb2otbo05eleYkYpi7H87gTAG2v"}]},"_npmUser":{"name":"muhsin-k","email":"muhsin@chatwoot.com"},"directories":{},"maintainers":[{"name":"muhsin-k","email":"muhsin@chatwoot.com"},{"name":"sivin","email":"iamsivin@gmail.com"},{"name":"pranavrajs","email":"pranavrajs@gmail.com"},{"name":"scmmishra","email":"shivam@shivam.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/markdown-to-txt_2.0.4_1733722646827_0.957424908721928"},"_hasShrinkwrap":false}},"time":{"created":"2024-11-28T04:02:11.249Z","modified":"2024-12-09T05:37:27.237Z","2.0.1":"2024-11-28T04:02:11.535Z","2.0.2":"2024-12-03T06:58:27.499Z","2.0.3":"2024-12-04T18:29:09.438Z","2.0.4":"2024-12-09T05:37:27.013Z"},"bugs":{"url":"https://github.com/ejrbuss/markdown-to-txt/issues"},"author":{"name":"Eric Buss","url":"root@ejrbuss.net"},"license":"MIT","homepage":"https://github.com/ejrbuss/markdown-to-txt#readme","keywords":["markdown","remove","txt","plain","text"],"repository":{"type":"git","url":"git+https://github.com/ejrbuss/markdown-to-txt.git"},"description":"Convert markdown to plain text","maintainers":[{"name":"muhsin-k","email":"muhsin@chatwoot.com"},{"name":"sivin","email":"iamsivin@gmail.com"},{"name":"pranavrajs","email":"pranavrajs@gmail.com"},{"name":"scmmishra","email":"shivam@shivam.dev"}],"readme":"# markdown-to-txt\n\nConverts markdown to plain text. Uses [marked](https://www.npmjs.com/package/marked) to correctly parse and produce a clean version of the text. This correctly handles markdown elements like code blocks, unlike similar libraries. TypeScript declarations are provided out of the box.\n\n## Installation\n\nTo install\n\n```\nnpm install markdown-to-txt\n```\n\n# Usage\n\n`markdown-to-txt` exports a single function for conversion. Call it like so\n\n```js\nconst { markdownToTxt } = require('markdown-to-txt');\n\nmarkdownToTxt('Some *quoted* `*code*`'); // \"Some quoted *code*\"\n```\n\nOr in TypeScript/ES modules\n\n```ts\nimport markdownToTxt from 'markdown-to-txt';\n\nmarkdownToTxt('Some *quoted* `*code*`'); // \"Some quoted *code*\"\n```\n\n`markdownToTxt` accepts [MarkedOptions](https://marked.js.org/using_advanced#options)\nas its second argument.\n\n**NOTE:** The output of markdownToTxt is **not** sanitized. The output may contain\nvalid HTML, JavaScript, etc. Be sure to sanitize if the output is intended for\nweb use.\n\n## Changelog\n\n - **2.0.0**\n\t- Options argument for `markdownToTxt` changed to align with latest version of marked.\n\t- `escapeHtml` option removed\n - **2.0.1**\n        - Updated marked to latest version (4.0.14) \n\n## Contact\n\nFeel free to send be bug reports or feature requests. If you are interested in my other work, checkout my [website](https://ejrbuss.net).\n\nEmail root@ejrbuss.net\n","readmeFilename":"README.md"}