{"_id":"excerpt-html","_rev":"12-82aaa2fdbfed2bbfb508f862bbf16357","name":"excerpt-html","description":"Get the Excerpt from a markdown file (like in jekyll or *smith)","dist-tags":{"latest":"1.2.2"},"versions":{"1.0.0":{"name":"excerpt-html","version":"1.0.0","description":"Get the Excerpt from a markdown file (like in jekyll or *smith)","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["markdown","excerpt","text-prrocessing"],"author":{"name":"Martin Heidegger","email":"martin.heidegger@gmail.com"},"license":"ISC","dependencies":{"cheerio":"^0.19.0","underscore.string":"^3.0.3"},"devDependencies":{},"repository":{"type":"git","url":"https://github.com/martinheidegger/excerpt-html.git"},"bugs":{"url":"https://github.com/martinheidegger/excerpt-html/issues"},"homepage":"https://github.com/martinheidegger/excerpt-html","gitHead":"293bd39c332a371f0d17976fc06a1e607a99e080","_id":"excerpt-html@1.0.0","_shasum":"7ac2919ff610ad1310b2b013f0efaf92584b86b4","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"leichtgewicht","email":"mh@leichtgewicht.at"},"maintainers":[{"name":"leichtgewicht","email":"mh@leichtgewicht.at"}],"dist":{"shasum":"7ac2919ff610ad1310b2b013f0efaf92584b86b4","tarball":"https://registry.npmjs.org/excerpt-html/-/excerpt-html-1.0.0.tgz","integrity":"sha512-9uO58IVKvGYxYGLXpeJenN8sYXEly+0rRH2imCB7yD+FRo6u7v7Q8KpeS7DSRPO3MNSrahnhjgjP0rmabFSyxA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGaiItF1rSViFt+nhDUTPba3yuaMhpYmpCzfl1hvLg9oAiBsXIbCSW9pmRJRn22RxTMVnj1KvW5+h/Obyo6GxN6XiA=="}]},"directories":{}},"1.0.1":{"name":"excerpt-html","version":"1.0.1","description":"Get the Excerpt from a markdown file (like in jekyll or *smith)","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["markdown","excerpt","text-prrocessing"],"author":{"name":"Martin Heidegger","email":"martin.heidegger@gmail.com"},"license":"ISC","dependencies":{"cheerio":"^0.19.0","underscore.string":"^3.0.3"},"devDependencies":{},"repository":{"type":"git","url":"git+https://github.com/martinheidegger/excerpt-html.git"},"bugs":{"url":"https://github.com/martinheidegger/excerpt-html/issues"},"homepage":"https://github.com/martinheidegger/excerpt-html","gitHead":"0264891d17129a5e55c2f141618a309b3f98b8de","_id":"excerpt-html@1.0.1","_shasum":"600dc92fddae9c565d07ab901c2294fc3f2077e8","_from":".","_npmVersion":"2.11.0","_nodeVersion":"2.2.1","_npmUser":{"name":"leichtgewicht","email":"mh@leichtgewicht.at"},"maintainers":[{"name":"leichtgewicht","email":"mh@leichtgewicht.at"}],"dist":{"shasum":"600dc92fddae9c565d07ab901c2294fc3f2077e8","tarball":"https://registry.npmjs.org/excerpt-html/-/excerpt-html-1.0.1.tgz","integrity":"sha512-Xh6aZFbktKg848BpRQy/k+3ahwnaL2G2fcO7GNwdisnqhdv5agxlLzl+gwhSJ0lZ5n700A4esxtycj8d9NQ7Zg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID6wSWnI9Tfduz3ailwg7DAvlWNlSvaW7X0PpCUSsRu1AiBPZYpbM5Vwu2NpF8e/p+rK4cFzQBiMYkYSxo9P1o6kyA=="}]},"directories":{}},"1.1.0":{"name":"excerpt-html","version":"1.1.0","description":"Get the Excerpt from a markdown file (like in jekyll or *smith)","main":"index.js","scripts":{"test":"npm run lint && tap --coverage test/**","quick":"tap test/**","coverage":"tap --coverage --coverage-report=html test/**","lint":"standard"},"keywords":["markdown","excerpt","text-prrocessing"],"author":{"name":"Martin Heidegger","email":"martin.heidegger@gmail.com"},"license":"ISC","dependencies":{"cheerio":"^0.20.0","lodash.truncate":"^4.3.0","lodash.unescape":"^4.0.0","striptags":"^2.1.1"},"devDependencies":{"standard":"^7.1.2","tap":"^6.2.0"},"repository":{"type":"git","url":"git+https://github.com/martinheidegger/excerpt-html.git"},"bugs":{"url":"https://github.com/martinheidegger/excerpt-html/issues"},"homepage":"https://github.com/martinheidegger/excerpt-html","gitHead":"20fed861573424a66097585f46cdf7f5d7eda80a","_id":"excerpt-html@1.1.0","_shasum":"eb1e5b2dec9e46452272a6244d3faebb9fd2924b","_from":".","_npmVersion":"3.9.6","_nodeVersion":"5.11.1","_npmUser":{"name":"leichtgewicht","email":"martin.heidegger@gmail.com"},"dist":{"shasum":"eb1e5b2dec9e46452272a6244d3faebb9fd2924b","tarball":"https://registry.npmjs.org/excerpt-html/-/excerpt-html-1.1.0.tgz","integrity":"sha512-GQ8VWC87Kn+D5DqNTTfGcLHpULt52icqYO8C3e0/oyrbN0b4pYkSh97sP0WTVcN0k0B3ro7fg4cikNSj8apZ9Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBLOmNGP5u7zc67d7hFyE1uYxL1PGhZoNtVQs5Trjfd+AiEAjsIbqwWMXO8XbNuACT3On53L7LVf+dPdwi+QHoybVvc="}]},"maintainers":[{"name":"leichtgewicht","email":"mh@leichtgewicht.at"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/excerpt-html-1.1.0.tgz_1468947828173_0.993234705645591"},"directories":{}},"1.1.1":{"name":"excerpt-html","version":"1.1.1","description":"Get the Excerpt from a markdown file (like in jekyll or *smith)","main":"index.js","scripts":{"test":"npm run lint && tap --coverage test/**","quick":"tap test/**","coverage":"tap --coverage --coverage-report=html test/**","lint":"standard"},"keywords":["markdown","excerpt","text-prrocessing"],"author":{"name":"Martin Heidegger","email":"martin.heidegger@gmail.com"},"license":"ISC","dependencies":{"cheerio":"^0.20.0","he":"^1.1.0","lodash.truncate":"^4.3.0","striptags":"^2.1.1"},"devDependencies":{"standard":"^7.1.2","tap":"^6.2.0"},"repository":{"type":"git","url":"git+https://github.com/martinheidegger/excerpt-html.git"},"bugs":{"url":"https://github.com/martinheidegger/excerpt-html/issues"},"homepage":"https://github.com/martinheidegger/excerpt-html","gitHead":"48b567b2939af6789759bf98524cf2e9c59e13d4","_id":"excerpt-html@1.1.1","_shasum":"c96a80c49f9a0699840cc995184a57ccde589f59","_from":".","_npmVersion":"3.10.5","_nodeVersion":"5.11.1","_npmUser":{"name":"leichtgewicht","email":"martin.heidegger@gmail.com"},"dist":{"shasum":"c96a80c49f9a0699840cc995184a57ccde589f59","tarball":"https://registry.npmjs.org/excerpt-html/-/excerpt-html-1.1.1.tgz","integrity":"sha512-59VBgdo0HXjXJkGsnao9dMt/4xZgybL1MbOkVBWiGskKEDHZC0Vw7Zi6uNFAr/H/Ea2GzqEfpP4BLeXlBKADXw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID0BsjAGigd1uuhGNBbM+t6LFicwOhsPJc7gO0g0um8PAiA37xPB7hqXIrLwYwkXBc4Cf+lfukibTE0r10Ddi2XL+A=="}]},"maintainers":[{"name":"leichtgewicht","email":"mh@leichtgewicht.at"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/excerpt-html-1.1.1.tgz_1470212773933_0.4733371459878981"},"directories":{}},"1.2.0":{"name":"excerpt-html","version":"1.2.0","description":"Get the Excerpt from a markdown file (like in jekyll or *smith)","main":"index.js","scripts":{"test":"npm run lint && tap --coverage test/**","quick":"tap test/**","coverage":"tap --coverage --coverage-report=html test/**","lint":"standard"},"keywords":["markdown","excerpt","text-prrocessing"],"author":{"name":"Martin Heidegger","email":"martin.heidegger@gmail.com"},"license":"ISC","dependencies":{"cheerio":"^0.20.0","he":"^1.1.0","lodash.truncate":"^4.3.0","striptags":"^2.1.1"},"devDependencies":{"standard":"^7.1.2","tap":"^6.2.0"},"repository":{"type":"git","url":"git+https://github.com/martinheidegger/excerpt-html.git"},"bugs":{"url":"https://github.com/martinheidegger/excerpt-html/issues"},"homepage":"https://github.com/martinheidegger/excerpt-html","gitHead":"1bcaceeacdfb347afa092a1f5ce3f09dab5a6a16","_id":"excerpt-html@1.2.0","_shasum":"bf8b1ada5473eb859916410f06ce12d0ef9c8fd8","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.5.0","_npmUser":{"name":"leichtgewicht","email":"martin.heidegger@gmail.com"},"dist":{"shasum":"bf8b1ada5473eb859916410f06ce12d0ef9c8fd8","tarball":"https://registry.npmjs.org/excerpt-html/-/excerpt-html-1.2.0.tgz","integrity":"sha512-WMy2Jgi0xEQwC3/QNxG9UEVeGpBA5uVoESevymupEFY654PpMDmZKOkyb4I9iVN9j1sy65ucn0ZXQa+z1HJ1BQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICQOR4nQ68r/5UMXPa6DC3zysxzpPsXStU6Z8OgKXNz9AiBmuSAMddJuG8VyM0ZiLYJhMA+MZsKcaywDjAi6pDSwQg=="}]},"maintainers":[{"name":"leichtgewicht","email":"mh@leichtgewicht.at"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/excerpt-html-1.2.0.tgz_1474711778389_0.2979634527582675"},"directories":{}},"1.2.1":{"name":"excerpt-html","version":"1.2.1","description":"Get the Excerpt from a markdown file (like in jekyll or *smith)","main":"index.js","scripts":{"test":"npm run lint && tap test/**","ci":"npm run test -- --cov --coverage-report=lcov","quick":"tap test/**","coverage":"tap --coverage --coverage-report=html test/**","lint":"standard"},"keywords":["markdown","excerpt","text-prrocessing"],"author":{"name":"Martin Heidegger","email":"martin.heidegger@gmail.com"},"license":"ISC","dependencies":{"acorn":"^6.0.5","cheerio":"^0.22.0","he":"^1.1.0","lodash.truncate":"^4.3.0","striptags":"^2.2.1"},"devDependencies":{"standard":"^12.0.1","tap":"^12.1.1"},"repository":{"type":"git","url":"git+https://github.com/martinheidegger/excerpt-html.git"},"bugs":{"url":"https://github.com/martinheidegger/excerpt-html/issues"},"homepage":"https://github.com/martinheidegger/excerpt-html","gitHead":"b66d879adf14aeb3c245eae91bddcf239378f12b","_id":"excerpt-html@1.2.1","_npmVersion":"6.5.0","_nodeVersion":"10.3.0","_npmUser":{"name":"leichtgewicht","email":"martin.heidegger@gmail.com"},"dist":{"integrity":"sha512-T/D/LpQrvw/dTnlfbDV5ZAuaIZsuR8SYdW1xBHeUoMCKPfTbO2yfjdrakmAMdrrkLRlWuXVlJloY3nP/WDAHMg==","shasum":"76f42906020b6e4e1ec3f66ebc71f7f86bc614d5","tarball":"https://registry.npmjs.org/excerpt-html/-/excerpt-html-1.2.1.tgz","fileCount":6,"unpackedSize":10959,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcOYuBCRA9TVsSAnZWagAAmYsP/jxam4tro+80n30+Hgic\nRaNqn0djmpJxjgShMPR7NDNTcPthUMLBu13HHU5B7psgSTSfXfGCyO/1ZAnw\nmnrGJJayFoimRP2xpVXt9oq7/H8dGJ9GP8CTkl/cYngrSntB17+7bhM1nHqD\nMBe2uTdPkcrfmNkHa8odVgHxgcUqiTv7W/rz8OZDJh7wnsQHhBZ3dXChw2sY\nB2G2bcQvD+wRUfMZ7K9wO0cMtdN50WkibIusWU0eO9bP3nruHspyJKAVVTsf\nYXv+0jIpcppb36fo9SPS5qTVkzujB26EPGQOXG1UR6aGyJjYpr/c+hiacCPP\nxAAQclVUdsZoHE7Oa207ymQDS92rAjtUk6EE6F+o/t958nQUNbNB+Z8Yll1u\nBYOThDoMs8rpuS+KTMncxpqZEuDHLDQIMf5DSyeT7xtlbVXNdXyv9XAo5CeH\nne819Cth5hMpO2kMCr6E7eNhnkNkzix+/FjsONXDrIZR9DnKiFAFm4Zo6QGi\n42w0Li3UdFu88PSejQSMJbuDCQmtUHY7z9FJYBY+rq8E+kUwuSVpIGpSpqBN\nVvwC8J8apQeNqscBcxiMstRxqXQk2QhkQk2K4CWWzavqeMnWpyNG4B7DwlK8\nX0vLc4vAPb26iQuhPV9yk0jUl5O9b+QF9gYmaieNfJ4qiRq+eROQ4R1LVqiB\nMVRZ\r\n=wSse\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQChtfdnuYUIrR9rKFAfsxII8otXlfF2p7o7quxt5xm01QIhAJYJKAvcRB1qG1IEt14GSztSRFy/SYXpy5/R5K4VKKU7"}]},"maintainers":[{"name":"leichtgewicht","email":"mh@leichtgewicht.at"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/excerpt-html_1.2.1_1547275137230_0.09288490862622156"},"_hasShrinkwrap":false},"1.2.2":{"name":"excerpt-html","version":"1.2.2","description":"Get the Excerpt from a markdown file (like in jekyll or *smith)","main":"index.js","scripts":{"test":"npm run lint && tap test/**","ci":"npm run test -- --cov --coverage-report=lcov","quick":"tap test/**","coverage":"tap --coverage --coverage-report=html test/**","lint":"standard"},"keywords":["markdown","blog","excerpt","text-processing"],"author":{"name":"Martin Heidegger","email":"martin.heidegger@gmail.com"},"contributors":[{"name":"Tim Carry"}],"license":"MIT","dependencies":{"cheerio":"^0.22.0","he":"^1.1.0","lodash.truncate":"^4.4.2","striptags":"^3.1.1"},"devDependencies":{"standard":"^16.0.3","tap":"^15.0.2"},"repository":{"type":"git","url":"git+https://github.com/martinheidegger/excerpt-html.git"},"bugs":{"url":"https://github.com/martinheidegger/excerpt-html/issues"},"homepage":"https://github.com/martinheidegger/excerpt-html","gitHead":"074836ee9825342d04d7e36eb39af6c0adada15a","_id":"excerpt-html@1.2.2","_nodeVersion":"15.8.0","_npmVersion":"7.5.4","dist":{"integrity":"sha512-feWHXal7mmHy/tArKpTK6Bv6+Pdx5nT2M9E/tI8zUVXPfUxvM9yuCMMTq8lI7VWypLc26OqkPh2Vxbv4ij2wWw==","shasum":"3a9531e386ae5e7dbeb69d58cbbc1790e7d0cc9d","tarball":"https://registry.npmjs.org/excerpt-html/-/excerpt-html-1.2.2.tgz","fileCount":6,"unpackedSize":11491,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgeZqqCRA9TVsSAnZWagAAtIIP/0hlpVdJyyHABXYmgPe2\n9b3+j6LkC8wDlUkRJVE9+2kaxw/O6HQHM0R8aOorQ369rwFNL7T7nPp/z5/6\nQa3jjliJ1x0MP5Qbq5reEy1TntZXSAlTTAXoqXkSfDjOgOUMqNMa4+kwnZ0E\nIqUOSS7L88CHamKVR74kqUHOP/Bn1WkXuHht30xxcof4XFOgk3FzZ3R86KLm\nRLvUHAaCaJK3xk3HR9b3vQQ/JdM1RNUkuP6OdiWzFTvtjfIQc+Y7J6Q2Q4dx\nnPemx9jX0NcNHxAunocdPi41Nn/3CDQPuWuQnqYdWZPZm64183/vQJHdDC+G\nOMr8BPdeYG2+Om344mQP1NB8Txpy8gRZkYcUAfjiSMEGAdhMc0Ht/PDtC8pi\nSWJZnc8koELDDYOaXcn/K4vlJ8/J6ywHE3bqzPUDihTrVbIO3d0MopJWqfQg\ngQM+PDqixC94vTtZTQJrJX6QyPHVqKcM1qL/M4MPNuWf41fu/0VGZuIG9ptE\nePUZN8T4VyHNfAmxLbLqhf3/Zvh09vmuL7DCaEygYpIK5VsgUQ8hrhkAEw+l\nt9uBsLtecyRITF+NBw3u/4uG+RWxZrQFRHJ866fQw2sopcVBTCBVoGHR/cR6\nTovXtqEKsnOMuF/yB+2g1NLXq6wpoBvnwd0H5ggO9ItHzkmMg1X+5k/oxOeF\noxV/\r\n=aW2m\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDDS1TvYJUZTy12fwHahXuOQQpujSitgz85Z3/3ATa7TAiBLKMINuZ4pjm2elK1DakqLVQwVKzRZ0ayBZbIRSfgTqQ=="}]},"_npmUser":{"name":"leichtgewicht","email":"martin.heidegger@gmail.com"},"directories":{},"maintainers":[{"name":"leichtgewicht","email":"martin.heidegger@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/excerpt-html_1.2.2_1618582186005_0.3081300558769904"},"_hasShrinkwrap":false}},"readme":"[![Build Status](https://travis-ci.org/martinheidegger/excerpt-html.svg?branch=master)](https://travis-ci.org/martinheidegger/excerpt-html)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)\n[![Maintainability](https://api.codeclimate.com/v1/badges/d1b611efce3f2c6eeb98/maintainability)](https://codeclimate.com/github/martinheidegger/excerpt-html/maintainability)\n[![Test Coverage](https://api.codeclimate.com/v1/badges/d1b611efce3f2c6eeb98/test_coverage)](https://codeclimate.com/github/martinheidegger/excerpt-html/test_coverage)\n\n# excerpt-html\n\nparses a given html text for a good excerpt.\n\n# Install\n\n```\n$ npm i excerpt-html --save\n```\n\n# API usage\n\n```JavaScript\nvar htmlCode = '<p>Hello world</p>';\nvar excerptHtml = require('excerpt-html');\nvar excerpt = excerptHtml(htmlCode);\n```\n\nIt will either use the first found paragraph or everything up to a \n\n`<!-- more -->`\n\n# Options\n\nYou can specify a few options that modify the way the excerpt is parsed:\n\n``` JavaScript\nexcerptHtml(htmlCode, {\n    moreRegExp:  /\\s*<!--\\s*more\\s*-->/i,  // Search for the slug\n    stripTags:   true, // Set to false to get html code\n    pruneLength: 140, // Amount of characters that the excerpt should contain\n    pruneString: '…', // Character that will be added to the pruned string\n    pruneSeparator: ' ', // Separator to be used to separate words\n})\n```\n\nNote: `pruneLength` and `prunestring` only work when `stripTags` is set to `true` (default).\n\n# History\n\nTo make this project we detached the code of [metalsmith-better-excerpts](https://github.com/simbo/metalsmith-better-excerpts) from `metalsmith`.\n\n\n\n","maintainers":[{"name":"leichtgewicht","email":"martin.heidegger@gmail.com"}],"time":{"modified":"2022-06-17T21:49:55.139Z","created":"2015-05-12T09:21:23.365Z","1.0.0":"2015-05-12T09:21:23.365Z","1.0.1":"2015-06-18T03:10:18.972Z","1.1.0":"2016-07-19T17:03:50.574Z","1.1.1":"2016-08-03T08:26:15.813Z","1.2.0":"2016-09-24T10:09:38.616Z","1.2.1":"2019-01-12T06:38:57.335Z","1.2.2":"2021-04-16T14:09:46.155Z"},"homepage":"https://github.com/martinheidegger/excerpt-html","keywords":["markdown","blog","excerpt","text-processing"],"repository":{"type":"git","url":"git+https://github.com/martinheidegger/excerpt-html.git"},"author":{"name":"Martin Heidegger","email":"martin.heidegger@gmail.com"},"bugs":{"url":"https://github.com/martinheidegger/excerpt-html/issues"},"license":"MIT","readmeFilename":"Readme.md","users":{"jhanstra":true},"contributors":[{"name":"Tim Carry"}]}