{"_id":"markdown-to-txt","_rev":"5-a7a29cec25f024882fb061da45bc9bf3","name":"markdown-to-txt","dist-tags":{"latest":"2.0.1"},"versions":{"1.0.0":{"name":"markdown-to-txt","version":"1.0.0","description":"Convert markdown to plain text","main":"index.js","types":"./lib/markdown-to-txt.d.ts","scripts":{"start":"tsc && node ./index.js","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","dependencies":{"marked":"^0.6.2"},"devDependencies":{"@types/jest":"^24.0.13","@types/marked":"^0.6.5","jest":"^24.8.0","ts-jest":"^24.0.2","typescript":"^3.4.5"},"gitHead":"760e6db988773bf7ec2e940ebf2e0ff34c5864db","_id":"markdown-to-txt@1.0.0","_nodeVersion":"11.9.0","_npmVersion":"6.8.0","dist":{"integrity":"sha512-QFcaaViw+7hUZoBRODE8gtv1Zsv56cuvsl9eN4YuOwy2ScMs0UPTGB7aCemDwxCWrfGsdOGaSBKx+Bzi+T+URQ==","shasum":"dd1df50f740e58e57d68b82d53caf904b478c556","tarball":"https://registry.npmjs.org/markdown-to-txt/-/markdown-to-txt-1.0.0.tgz","fileCount":12,"unpackedSize":51314,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc5cNOCRA9TVsSAnZWagAA4uEP/ivvbrAYm+9SWw6PvpAK\nUGuiFk+shAFtkcq+H4jjw8KtjAz5vJVW0YJn9CIyuHNJNqbNkoutNu1CwQ3y\nyZaBXmeptZdg3nc2RMBZH6e1dFZPSps+IXB3PbdboP4tA26cg/HwY2DKrc7Z\n5a5AfKlJkX7HA22LtnBrhrjWqYHo8v65UPyMrJwbA5hrldMC6RUsvyiPweTK\n/a76yULR/dG4nvhwVwtmJT9HWktLclUM/2rd6pk2yL/CHsusOqfU/4NGQfOx\ni9gifkrRUqoCumF5SzhM7tnKyOHg6gZhYRu+dKl6A6ZH3/k6cwxej4oK7zjM\n7G0m8Rq2JGe4hWUIZDUBOphHO2fcKq0jxVFxK/3J8g+bp693nVPElqEwcGh7\nRHR5xFssvGGSW5++OuMRoYzzYHlVq1b2ej7ea84bE8s11En3wrtC4RZxz4M6\nsioP+WarmYWwriYHo7i31Q8qUqLqZZMQaUykcy/G6M8UN0iZOmXBM3/2z2wY\nDD3ad7bd+w0B2ryxdeEgL9X81q4m+nlB7deEjNACyB4gs/SLQfwEjY8LSxgv\nKqFXDIE7u0YOj4XqPcjRznEcXbl0RQ3sNAFCU6kzLtR8Ajsb8jJfkniGNAGi\njjK2srlXUdvTG2/PguR7WF7FzFHDGDaEsVD2E8Xrya7jxZVE9ScdOSdgFF+X\nbUBN\r\n=/n3h\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD20nbo0/h/BYfWqPbIoDfgB3HtXMM7HAptzmEwkAtjRgIgZB0Wm9Q0TeHX66v/Eh7lv58Dq2tLG1ABbs1hCtbMXyE="}]},"maintainers":[{"name":"ejrbuss","email":"ejrbuss@gmail.com"}],"_npmUser":{"name":"ejrbuss","email":"ejrbuss@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/markdown-to-txt_1.0.0_1558561613501_0.48146376314915673"},"_hasShrinkwrap":false},"1.0.1":{"name":"markdown-to-txt","version":"1.0.1","description":"Convert markdown to plain text","main":"./lib/markdown-to-txt.js","types":"./lib/markdown-to-txt.d.ts","scripts":{"start":"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","dependencies":{"marked":"^0.6.2"},"devDependencies":{"@types/jest":"^24.0.13","@types/marked":"^0.6.5","jest":"^24.8.0","ts-jest":"^24.0.2","typescript":"^3.4.5"},"gitHead":"fe20eabcf7678e9ed7f17125b5fee14ef95a9598","_id":"markdown-to-txt@1.0.1","_nodeVersion":"11.9.0","_npmVersion":"6.8.0","dist":{"integrity":"sha512-PACe8GiGnJ5Nf/bkE+NWIMK36qRAGW6JP9mHLeiL6BBoUA51EqEmtJd9VEI0lGl74JYUUSoKHqX0FQV4ivo1nA==","shasum":"f02528acaf77366d6f29569546de61acd74ba2b7","tarball":"https://registry.npmjs.org/markdown-to-txt/-/markdown-to-txt-1.0.1.tgz","fileCount":11,"unpackedSize":52573,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc5cdkCRA9TVsSAnZWagAARFAP/A7kvnX8yLcE9nMc4U0/\nn8W1/O11yNdtKI0xNKxeqqUHlJ39JRkEIdb3N4vrRS+tt8C5sisXNHV1C3TL\nOgC0N/Ntin1ZEliZ9+V/Pt13J6eYfeeZQWaeuIkntBXerBm2mJsZovREibSX\nFxJ/0fcdkmSjxVlJLo8XiDuYTPAWJHECWO6xdorja8oS6aDwQlwMu5+X6BwG\n7dEhuMcvVOljJhjC6Dv8/5Kbgd5mNcpoxDYjBgEKwyjdZAAU/HG/+eZ3gB12\niYvGMQysY5Nz9N99ukGHOgcwZ/b4zN/c8zvsqlJaVm25gk5sq2zPse1byyzY\n0IatPH2q9NGIWs47c87t1xod4hhl9cuoJxxMg+e3SzUaAelqDROXDCpG9XKF\nJBAaeQpads34OaP9ln1hYePX0IGDfbUbq39btqzo8xBZhsUQXof2ZdygNRAO\nzZvwUzkfQ1NvoBO4cRxE6N9+UwBKVbkhbzHJwpqOupNESF6FdRFujabgBa6I\nMqaJFQLQTnsqknaLmOPOYJslFUw4RIRW2lubSe3xCDq5ntVqPmWzGQKj3VKI\nO6YbRQrl1P6TE+0uKovUQoZVh4yZXiWWNPFYO3vooEFLfQNdPvYGELFXKEPn\nAkZ+Owi3woHAQMTlCnsdJmzsHf0iZchg0/FjV0RIGFkPcJw/dzWHCqph/3FD\nUmnv\r\n=Bkpy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCHSwZpJ3gtmm6kv0b4wgg9dyifIaE4ZWQYwboGAMoD/gIhAOoHV6HYQp6ze50cSEc3p4YD5V5ZQ1YpT86X15pisgiO"}]},"maintainers":[{"name":"ejrbuss","email":"ejrbuss@gmail.com"}],"_npmUser":{"name":"ejrbuss","email":"ejrbuss@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/markdown-to-txt_1.0.1_1558562659984_0.810812825942058"},"_hasShrinkwrap":false},"2.0.0":{"name":"markdown-to-txt","version":"2.0.0","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":"^3.0.2","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":"^3.0.8"},"gitHead":"04fd78a065af97a34e8107f6eed4a354b538a528","_id":"markdown-to-txt@2.0.0","_nodeVersion":"17.0.1","_npmVersion":"8.1.0","dist":{"integrity":"sha512-H5DSAY6frUQ6/CR0nJMlGCEuSA3pvi14dYfICJPKLAvd/rDk6eb+cj84zU5XTNYzECyCcujoAL1PHhjmOgeqUw==","shasum":"7954902555fe46b7aceee02f2fa83619d6519504","tarball":"https://registry.npmjs.org/markdown-to-txt/-/markdown-to-txt-2.0.0.tgz","fileCount":12,"unpackedSize":19772,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2ywYCRA9TVsSAnZWagAAbEMP/A0/KmsmvUHI8doUV1I2\nGBkM2C3RVVdowtAeuYv2Ri56FeiQL3mXrltoNtbonJWV5iFsdZgmWIvqFRX5\nOgaethcuuP0Jckr4rbSFwAvdwPd9BtDsBjU488K2zNWZfe9MgB0QAFUPNb34\nFmWsowMpm66BzKvwP94CpZBfNbYlWi8eYAPWDj3UZsFaYH5u++tqQv/2lF01\noM4bkYxbE3ehJ4TxlHmAF8EgtnqkRcixkytrrCnB5hhA8uPCeriCBNW1+GaF\nGUG01dpAfqd5Uq+LFx4y6HsQAWthgrM8jr0O+K+gK/LEgY/MOdYfyuUNrBD5\nSpJkWt8iREyYr5Fv4x39zaDe0j81OzlTcq6qeH89v7qIicfV/yDVMu9Rhrio\nZzNEYm8JTQQ1VjB4exlaxamAx+qNeHvRPzYxx1ZhU3xTDluf1WFi8cf2mRg/\nB3iPraniDTGaogVGleM4wigoFJdJsFfbabTIjYCV6R8Q6o+ohgpTtyTtbnxb\nw7o9xjYU3Fd0KjSK0Jog+QY+qmymFmTJNpaY3OD+a2whp3F6qac+SQvrNNfz\nTC8V/IVavnCJIL6PGH9jjl15hJ+5KsOgvuwt71dfPcw4tjDguPMH6sYRQ8L/\nCk1fDK3sF0POTFc4S7N8cHb6rlYGe5sxZYy1MVCQRvYqpCL3QkLT8L9m809E\nTatT\r\n=yKoA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICao+yC06aa5+qACfGdVKYqYDnh40rxPHT4qSB2QlVSVAiBFnYLur+vHq8ccBEISjwlDpcOxS3a/zwiT5w+LAK9m0w=="}]},"_npmUser":{"name":"ejrbuss","email":"ejrbuss@gmail.com"},"directories":{},"maintainers":[{"name":"ejrbuss","email":"ejrbuss@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/markdown-to-txt_2.0.0_1635375405257_0.6977834159059635"},"_hasShrinkwrap":false},"2.0.1":{"name":"markdown-to-txt","version":"2.0.1","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"},"gitHead":"6354c6f78a8402484fcc3053b9fbb533e86fd315","_id":"markdown-to-txt@2.0.1","_nodeVersion":"17.0.1","_npmVersion":"8.1.0","dist":{"integrity":"sha512-Hsj7KTN8k1gutlLum3vosHwVZGnv8/cbYKWVkUyo/D1rzOYddbDesILebRfOsaVfjIBJank/AVOySBlHAYqfZw==","shasum":"bfd6233a2635443cc24900a158b60c6af36ce9c5","tarball":"https://registry.npmjs.org/markdown-to-txt/-/markdown-to-txt-2.0.1.tgz","fileCount":12,"unpackedSize":19605,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCC3M6Vx5MbxrDLmbEHdBvKDOuJ0o+fpbZhaoYfo3IaHwIgHw0o2jFcIO9abH/8GZOfw9h5x1GKElI2Toz++dKDiAE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiYn2+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqiURAAmo/Hr03FJfqYEo5jh7ZiK1psqE7sw2LaqmWvWWMHo5/F08JL\r\nNENsyxN24I1yg5dJ91HUZ7sxpiXpNHclehFwf2qo7Uf1OoOgBTeA2UrYUmKX\r\niAw1QEwGHUjd5cKMds0aRNNvmlkcDx1qaCZOxhrwVwAJnkv88KZY2JslK2jN\r\njVtalrhlkt+IhY5yCuK53lYPp80EPM/+y4xkmqwFh7BM8vUYoCn6YZjoIAt4\r\nhz7yB/PImIEii0V6k/2iyXe/Dia71dpSW+PZiPfYdLOO8rYm+SOt5Q/Be7zL\r\nXiiH2LJp9yVLRQEvrWXwt3Tzb/I6Fuygft2PotNPKdduv5TZeFMvA+AK+4wD\r\nXZImp0udQPr21SlmGZBvEML7YfgSkKigweuZzpH8ypPPF4ixRihSdL8OER1T\r\ncgFBSA+2Wd/11hg/H62JJhOH45UTBmOLnTkGdnqvy6fS/oAOgjhtLpV4RhAr\r\nEda8N09Vfqn3hJuO+NO9TZyBoW2YUt3qAARSi2No/0qPxZ8FrQ4/PheyOn0c\r\nmS2XbjMM4xbNcQYqKE9DrpcTzXI7whJvcqO08xuQlgGcwUWMLTdqNDAHQiqy\r\nYhzGv5hsfaq2kXaAhZC7Z73rrDeOrSYBy4+mTB0cLlzOrdJMKMM2HdSA2pZV\r\ngsaFVdwTAyTFxhunyUgb1Crk5lOSMEuvlBc=\r\n=q3aN\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ejrbuss","email":"ejrbuss@gmail.com"},"directories":{},"maintainers":[{"name":"ejrbuss","email":"ejrbuss@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/markdown-to-txt_2.0.1_1650621886753_0.32986470267945456"},"_hasShrinkwrap":false}},"time":{"created":"2019-05-22T21:46:53.500Z","1.0.0":"2019-05-22T21:46:53.650Z","modified":"2022-05-08T20:36:07.602Z","1.0.1":"2019-05-22T22:04:20.187Z","2.0.0":"2021-10-27T22:56:45.399Z","2.0.1":"2022-04-22T10:04:46.918Z"},"maintainers":[{"name":"ejrbuss","email":"ejrbuss@gmail.com"}],"description":"Convert markdown to plain text","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"},"author":{"name":"Eric Buss","url":"root@ejrbuss.net"},"bugs":{"url":"https://github.com/ejrbuss/markdown-to-txt/issues"},"license":"MIT","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\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"}