{"_id":"truncate-html","_rev":"41-04d89d95fcef2346082c66c09f379ffc","name":"truncate-html","dist-tags":{"beta":"1.2.0-beta.1","latest":"1.2.2"},"versions":{"0.0.1":{"name":"truncate-html","version":"0.0.1","keywords":["truncate html","html","truncate"],"author":{"name":"Saiya"},"license":"MIT","_id":"truncate-html@0.0.1","maintainers":[{"name":"evecalm","email":"evecalm@live.cn"}],"homepage":"https://github.com/evecalm/truncate-html#readme","bugs":{"url":"https://github.com/evecalm/truncate-html/issues"},"dist":{"shasum":"ddebbbd527adcfe9ccb4b6c41a7e04c82c9a5733","tarball":"https://registry.npmjs.org/truncate-html/-/truncate-html-0.0.1.tgz","integrity":"sha512-NU8byx2LLFcx9JA23w8xJBf44iV+mkHebziTMRFy4WUymtOvzsmSKXKG4fCRBYS5R5vdyeUZBeCKmbVmHOgnag==","signatures":[{"sig":"MEUCIBScwnQMMcJalUovMUOJfF9yuBG3yhmMLMgaBqnDkyucAiEA9nn1ye3ENK1FUyE+vvIN0Oltf4pi+CiAiAJqej0wE2M=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/truncate.js","_from":".","_shasum":"ddebbbd527adcfe9ccb4b6c41a7e04c82c9a5733","gitHead":"9bf694e11d1ba112b8d3981eae9a3fc94987ad58","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"evecalm","email":"evecalm@live.cn"},"repository":{"url":"git+https://evecalm@github.com/evecalm/truncate-html.git","type":"git"},"_npmVersion":"2.14.6","description":"truncate html and keep tags in safe","directories":{},"_nodeVersion":"4.1.2","dependencies":{"cheerio":">0.0.1"}},"0.0.2":{"name":"truncate-html","version":"0.0.2","keywords":["truncate html","html","truncate"],"author":{"name":"Saiya"},"license":"MIT","_id":"truncate-html@0.0.2","maintainers":[{"name":"evecalm","email":"evecalm@live.cn"}],"homepage":"https://github.com/evecalm/truncate-html#readme","bugs":{"url":"https://github.com/evecalm/truncate-html/issues"},"dist":{"shasum":"00514c0d25ef9427c594a04105f19db81175303a","tarball":"https://registry.npmjs.org/truncate-html/-/truncate-html-0.0.2.tgz","integrity":"sha512-5ZomAgIP+v5N5WE2AsKeqxen+VctogVuFK0G5ym7H/EMtNRhenea3yJ/Jw09mhpWTf3EtM6ZoXRYN8yz7l5tvA==","signatures":[{"sig":"MEUCID4E5xn6wkjS1pGqb690ugW2uw6nOQ+fWaFb5jPU5CO6AiEApMYO21r/JMfI2tPF4pN3g3Tgq8M3BH6kvAwRRLZAH6s=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/truncate.js","_from":".","_shasum":"00514c0d25ef9427c594a04105f19db81175303a","gitHead":"45647f3d819cab29ba2daa98aa187d879e1368bc","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"evecalm","email":"evecalm@live.cn"},"repository":{"url":"git+https://evecalm@github.com/evecalm/truncate-html.git","type":"git"},"_npmVersion":"2.14.6","description":"truncate html and keep tags in safe","directories":{},"_nodeVersion":"4.1.2","dependencies":{"cheerio":"~0.19.0"}},"0.0.3":{"name":"truncate-html","version":"0.0.3","keywords":["truncate html","html","truncate"],"author":{"name":"Saiya"},"license":"MIT","_id":"truncate-html@0.0.3","maintainers":[{"name":"evecalm","email":"evecalm@live.cn"}],"homepage":"https://github.com/evecalm/truncate-html#readme","bugs":{"url":"https://github.com/evecalm/truncate-html/issues"},"dist":{"shasum":"6dac2137cf68add3adbf3f381d274d95eb10e8ab","tarball":"https://registry.npmjs.org/truncate-html/-/truncate-html-0.0.3.tgz","integrity":"sha512-NTruvleO8FNWL2imcrXlgVPVXdrlArg3ZB02JhPQSbexqgira7Pogyr+fcp8HBJGfw1IQz10CUXQWe7VV/6oVw==","signatures":[{"sig":"MEUCIQDtHiyXO+e/daem286gq61Abp74uct7aMrzb8T1E0+E4QIgXY5d3Jl49pI3ugSSlYJrytBtkmHUaOwHnxcojofUPvc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/truncate.js","_from":".","_shasum":"6dac2137cf68add3adbf3f381d274d95eb10e8ab","gitHead":"04c54bb323ddb9544ed8c29ad75656222f2d1adf","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"evecalm","email":"evecalm@live.cn"},"repository":{"url":"git+https://evecalm@github.com/evecalm/truncate-html.git","type":"git"},"_npmVersion":"2.14.6","description":"truncate html and keep tags in safe","directories":{},"_nodeVersion":"4.1.2","dependencies":{"cheerio":"~0.19.0"}},"0.0.4":{"name":"truncate-html","version":"0.0.4","keywords":["truncate html","html","truncate"],"author":{"name":"Saiya"},"license":"MIT","_id":"truncate-html@0.0.4","maintainers":[{"name":"evecalm","email":"evecalm@live.cn"}],"homepage":"https://github.com/evecalm/truncate-html#readme","bugs":{"url":"https://github.com/evecalm/truncate-html/issues"},"dist":{"shasum":"2ccefaaa94e2927b289c42108fb1a218eeeae8f3","tarball":"https://registry.npmjs.org/truncate-html/-/truncate-html-0.0.4.tgz","integrity":"sha512-zClrtE3lz0hNzFncTCJv4Vh0kF6bLaes29gaZHHc+E3bkwtLAgDFTtzAC19W1WUDkkm8KUuyrdFXwlug3fYFpw==","signatures":[{"sig":"MEUCIAd2YdUYd5w67HrKi1OpFajMa1h2LbQauUjAVs8MGlAeAiEA/watoLZxmjIS7trBPu7S9qTrblYis40gRLmgdJV7n6w=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/truncate.js","_from":".","_shasum":"2ccefaaa94e2927b289c42108fb1a218eeeae8f3","gitHead":"cc87cd5b312693b13f1437bb4f0192f2383f9f88","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"evecalm","email":"evecalm@live.cn"},"repository":{"url":"git+https://evecalm@github.com/evecalm/truncate-html.git","type":"git"},"_npmVersion":"2.14.6","description":"truncate html and keep tags in safe","directories":{},"_nodeVersion":"4.1.2","dependencies":{"cheerio":"~0.19.0"}},"0.0.5":{"name":"truncate-html","version":"0.0.5","keywords":["truncate html","html","truncate"],"author":{"name":"Saiya"},"license":"MIT","_id":"truncate-html@0.0.5","maintainers":[{"name":"evecalm","email":"evecalm@live.cn"}],"homepage":"https://github.com/evecalm/truncate-html#readme","bugs":{"url":"https://github.com/evecalm/truncate-html/issues"},"dist":{"shasum":"cb9f15c7f43bdea230d6416b66d293d8d6f153be","tarball":"https://registry.npmjs.org/truncate-html/-/truncate-html-0.0.5.tgz","integrity":"sha512-w7XGl1q2RcBA8qeLulgj3Ae8EUhFCiUTcX8xT3HW0IMnyuUtrJAYhGmcl1rwuAy2MlfX8ImvCMgES/3QzQ/Ppw==","signatures":[{"sig":"MEYCIQDciE7s2lCQ7zpHQ5tgMF9SvxHfpNEPw3b+yPOwNhntXwIhAKJmvQlHExW46ryIQUQGew6VeOawmVDzLGwQ/FD1FV9r","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/truncate.js","_from":".","_shasum":"cb9f15c7f43bdea230d6416b66d293d8d6f153be","gitHead":"54d70b46bc95065b299f54e97239430a456dfc38","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"evecalm","email":"evecalm@live.cn"},"repository":{"url":"git+https://evecalm@github.com/evecalm/truncate-html.git","type":"git"},"_npmVersion":"2.14.6","description":"truncate html and keep tags in safe","directories":{},"_nodeVersion":"4.1.2","dependencies":{"cheerio":"~0.19.0"}},"0.0.6":{"name":"truncate-html","version":"0.0.6","keywords":["truncate html","html","truncate"],"author":{"name":"Saiya"},"license":"MIT","_id":"truncate-html@0.0.6","maintainers":[{"name":"evecalm","email":"evecalm@live.cn"}],"homepage":"https://github.com/evecalm/truncate-html#readme","bugs":{"url":"https://github.com/evecalm/truncate-html/issues"},"dist":{"shasum":"55f76b697438d45578fbc48de6b6263eaa97d8a4","tarball":"https://registry.npmjs.org/truncate-html/-/truncate-html-0.0.6.tgz","integrity":"sha512-pPMEZEK3L2RNmDtTEmjOmgj/37RZ8W5iqImQyvsGONbZAE8UwOIXpCZCDHGqvuj+15R2X1rmxMhMM4tg42iQpg==","signatures":[{"sig":"MEYCIQDPWgqV408twgv1vycQsdIfwWV9NKKBSGZNAjOeLBSNVAIhAI85bi/90AwaBksOA4NMpQLYMU28jcMKdscMii1Oqt0A","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/truncate.js","_from":".","_shasum":"55f76b697438d45578fbc48de6b6263eaa97d8a4","gitHead":"027360a020aee55b8c037976971c3089aee63251","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"evecalm","email":"evecalm@live.cn"},"repository":{"url":"git+https://evecalm@github.com/evecalm/truncate-html.git","type":"git"},"_npmVersion":"2.14.6","description":"truncate html and keep tags in safe","directories":{},"_nodeVersion":"4.1.2","dependencies":{"cheerio":"~0.19.0"}},"0.1.0":{"name":"truncate-html","version":"0.1.0","keywords":["truncate html","html","truncate"],"author":{"name":"Saiya"},"license":"MIT","_id":"truncate-html@0.1.0","maintainers":[{"name":"evecalm","email":"evecalm@live.cn"}],"homepage":"https://github.com/evecalm/truncate-html#readme","bugs":{"url":"https://github.com/evecalm/truncate-html/issues"},"dist":{"shasum":"6fb28a2fe998279d0b207b9caaa58e348e0d2f3e","tarball":"https://registry.npmjs.org/truncate-html/-/truncate-html-0.1.0.tgz","integrity":"sha512-4/wlqIPAPKQXM+67YopbWU94dNf58B2SoXeipojQhzEjcN2cON4McpgVyGcJy9RgsLiZT/NGLLnOYFumVxLCjw==","signatures":[{"sig":"MEQCIFvvqFUpH0/vFsmOH9Red7tXhdoTuxfNj8g4Z+pRBOvSAiBPVStmT8f4CcxZ5N1upsI5DXZ1da5wwmisrnm6ZhM1Ig==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/truncate.js","_from":".","_shasum":"6fb28a2fe998279d0b207b9caaa58e348e0d2f3e","gitHead":"e6bb15566f174c296feaf22ab2d39e16294550b1","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"evecalm","email":"evecalm@live.cn"},"repository":{"url":"git+https://evecalm@github.com/evecalm/truncate-html.git","type":"git"},"_npmVersion":"3.7.3","description":"truncate html and keep tags in safe","directories":{},"_nodeVersion":"5.8.0","dependencies":{"cheerio":"~0.19.0"},"_npmOperationalInternal":{"tmp":"tmp/truncate-html-0.1.0.tgz_1469088808513_0.053124939324334264","host":"packages-12-west.internal.npmjs.com"}},"0.1.1":{"name":"truncate-html","version":"0.1.1","keywords":["truncate html","html","truncate"],"author":{"name":"Saiya"},"license":"MIT","_id":"truncate-html@0.1.1","maintainers":[{"name":"evecalm","email":"evecalm@live.cn"}],"homepage":"https://github.com/evecalm/truncate-html#readme","bugs":{"url":"https://github.com/evecalm/truncate-html/issues"},"dist":{"shasum":"da6d8ca0481fad346f40f1870ca3ef88cd5f387e","tarball":"https://registry.npmjs.org/truncate-html/-/truncate-html-0.1.1.tgz","integrity":"sha512-SzuzYZn85Xlfol0LyQ56jNrTCPbLKfjj1VdXp/BjYuUwXu+EudVEymNLhDK2uoe0Pts03y8bIJKZHAQHnaZ3VQ==","signatures":[{"sig":"MEUCIQC3S5fFUQw0JFIDu4U+Fs9G+6//Z/3+F1Y6ZiCCZpe7vwIgRFEKU9iUjsoiqeceppzKYE8pwrwq2bj8rI7qgEEBxKM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/truncate.js","_from":".","_shasum":"da6d8ca0481fad346f40f1870ca3ef88cd5f387e","gitHead":"d0a36e503eb788bff04ad0741040d8db3693a4f9","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"evecalm","email":"evecalm@live.cn"},"repository":{"url":"git+https://evecalm@github.com/evecalm/truncate-html.git","type":"git"},"_npmVersion":"3.7.3","description":"truncate html and keep tags in safe","directories":{},"_nodeVersion":"5.8.0","dependencies":{"cheerio":"~0.19.0"},"_npmOperationalInternal":{"tmp":"tmp/truncate-html-0.1.1.tgz_1469502925933_0.681580871809274","host":"packages-16-east.internal.npmjs.com"}},"0.1.2":{"name":"truncate-html","version":"0.1.2","keywords":["truncate html","html","truncate"],"author":{"name":"Saiya"},"license":"MIT","_id":"truncate-html@0.1.2","maintainers":[{"name":"evecalm","email":"evecalm@live.cn"}],"homepage":"https://github.com/evecalm/truncate-html#readme","bugs":{"url":"https://github.com/evecalm/truncate-html/issues"},"dist":{"shasum":"931dc89faba14e75ed85d0f05bce74e2f6c50e95","tarball":"https://registry.npmjs.org/truncate-html/-/truncate-html-0.1.2.tgz","integrity":"sha512-aKpJzVbTkKNnMgfb2ZlUg37zaHD7oM2oPOQy6JRzrsnkRFLQqz9Rwe8VZQb1J8+rTGgCpn84S2U2MTFWh3AiTA==","signatures":[{"sig":"MEUCIANaJVDosgi76qykZzWlHA3j/GSJZ/oWCxAxihGJIGjgAiEA873vK7tnvJR8Bv+F6SrVni7ssyPG7zYbZZu5/Fm6gX8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/truncate.js","_from":".","_shasum":"931dc89faba14e75ed85d0f05bce74e2f6c50e95","gitHead":"4f22456636b13b9b4e17cf256da0cafc3e5f08c6","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"evecalm","email":"evecalm@live.cn"},"repository":{"url":"git+https://evecalm@github.com/evecalm/truncate-html.git","type":"git"},"_npmVersion":"3.10.8","description":"truncate html and keep tags in safe","directories":{},"_nodeVersion":"6.6.0","dependencies":{"cheerio":"~0.19.0"},"_npmOperationalInternal":{"tmp":"tmp/truncate-html-0.1.2.tgz_1481009992517_0.19571690470911562","host":"packages-18-east.internal.npmjs.com"}},"0.1.4":{"name":"truncate-html","version":"0.1.4","keywords":["truncate html","html","truncate"],"author":{"name":"Saiya"},"license":"MIT","_id":"truncate-html@0.1.4","maintainers":[{"name":"evecalm","email":"evecalm@live.cn"}],"homepage":"https://github.com/evecalm/truncate-html#readme","bugs":{"url":"https://github.com/evecalm/truncate-html/issues"},"dist":{"shasum":"18b4c6c0f18f5b17965ba7bd90ed39b8a475068a","tarball":"https://registry.npmjs.org/truncate-html/-/truncate-html-0.1.4.tgz","integrity":"sha512-gRZ+yPKXoXn/K6I5ic5EPzSFPyaItkIdCkj6QWCafOnEdS8iTF6TywWdwHbjSozibewPUVp+kosgc3+2uvhhQw==","signatures":[{"sig":"MEUCIEVFdnrfN6/+MYfEVBMCjf8uAtxjzL4oedTWiatSUGN4AiEA9sRHPvPwVoVWTGi/evkePeN2O3ilYbcnQRzuswbDFQM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/truncate.js","_from":".","_shasum":"18b4c6c0f18f5b17965ba7bd90ed39b8a475068a","gitHead":"12a8fc03aa2153827eec1c72fa9c22e3d2292bdc","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"evecalm","email":"evecalm@live.cn"},"repository":{"url":"git+https://evecalm@github.com/evecalm/truncate-html.git","type":"git"},"_npmVersion":"4.1.2","description":"truncate html and keep tags in safe","directories":{},"_nodeVersion":"7.5.0","dependencies":{"cheerio":"~0.19.0"},"_npmOperationalInternal":{"tmp":"tmp/truncate-html-0.1.4.tgz_1488553899507_0.055843814043328166","host":"packages-18-east.internal.npmjs.com"}},"1.0.0-rc.1":{"name":"truncate-html","version":"1.0.0-rc.1","keywords":["truncate html","html","truncate"],"author":{"name":"Saiya"},"license":"MIT","_id":"truncate-html@1.0.0-rc.1","maintainers":[{"name":"evecalm","email":"evecalm@live.cn"}],"homepage":"https://github.com/evecalm/truncate-html#readme","bugs":{"url":"https://github.com/evecalm/truncate-html/issues"},"dist":{"shasum":"cebc173cd37ac75aa361382a7713bf19673383a4","tarball":"https://registry.npmjs.org/truncate-html/-/truncate-html-1.0.0-rc.1.tgz","integrity":"sha512-7pIWrJmDZc5peYXncb2ULHH8iBaf72Y5g7HmQqOqtQp2sAq6kbuFgu9oMK1+kehegJliYaVOdtF0ywocWNRSPw==","signatures":[{"sig":"MEUCIC/6JcIGle+U0nppQXo5VNtlvClIToa6aehwa62qzxVmAiEAn3W9/zK9CbR2U+Ya5xVZ7qAkRQw62IzX6eQSb56lD44=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/truncate.cjs.js","module":"dist/truncate.es.js","gitHead":"8e4bde9ac51f1ccf56783e337fae8e76de22ed5d","scripts":{"dev":"npm run build:dir","lint":"eslint --ext .js -f ./node_modules/eslint-friendly-formatter --fix src","test":"jest --coverage","build":"npm run lint && npm run test && npm run build:dir","build:dir":"rollup -c --environment format:cjs && rollup -c --environment format:es","test:server":"jest --coverage --watch"},"_npmUser":{"name":"evecalm","email":"evecalm@live.cn"},"repository":{"url":"git+https://evecalm@github.com/evecalm/truncate-html.git","type":"git"},"_npmVersion":"5.6.0","description":"Truncate HTML and Keep Tags","directories":{},"_nodeVersion":"9.5.0","dependencies":{"cheerio":"0.22.0"},"devDependencies":{"jest":"22.1.4","buble":"0.18.0","eslint":"^4.16.0","rollup":"0.55.3","babel-core":"6.26.0","babel-eslint":"^8.2.1","eslint-plugin-node":"^5.2.1","babel-preset-es2015":"6.24.1","rollup-plugin-buble":"0.18.0","eslint-plugin-import":"^2.8.0","eslint-plugin-promise":"^3.6.0","eslint-config-standard":"^11.0.0-beta.0","eslint-plugin-standard":"^3.0.1","eslint-friendly-formatter":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/truncate-html-1.0.0-rc.1.tgz_1517648782266_0.8221323734614998","host":"s3://npm-registry-packages"}},"1.0.0-rc.2":{"name":"truncate-html","version":"1.0.0-rc.2","keywords":["truncate html","html","truncate"],"author":{"name":"Saiya"},"license":"MIT","_id":"truncate-html@1.0.0-rc.2","maintainers":[{"name":"evecalm","email":"evecalm@live.cn"}],"homepage":"https://github.com/evecalm/truncate-html#readme","bugs":{"url":"https://github.com/evecalm/truncate-html/issues"},"dist":{"shasum":"1909643ba045f708e6c21f36e231185cd2793517","tarball":"https://registry.npmjs.org/truncate-html/-/truncate-html-1.0.0-rc.2.tgz","integrity":"sha512-BKkWjCKrN0lvhH+xGjWmiB2p5ImGzRDRvqvYODiV5r4VBDSkCBk9vFVp8OVOn3Uh10RqLV16IP07swsJVPlIkg==","signatures":[{"sig":"MEYCIQCiTPyd7rjgDHuEUQSXrht2VEIooB+0PvKtnaJrGfiYiQIhAIUSxNBia60Yao+j0wZnqO6hWU4LbQiwzGCCNwFh5OdP","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/truncate.cjs.js","module":"dist/truncate.es.js","gitHead":"8e4bde9ac51f1ccf56783e337fae8e76de22ed5d","scripts":{"dev":"npm run build:dir","lint":"eslint --ext .js -f ./node_modules/eslint-friendly-formatter --fix src","test":"jest --coverage","build":"npm run lint && npm run test && npm run build:dir","build:dir":"rollup -c --environment format:cjs && rollup -c --environment format:es","test:server":"jest --coverage --watch"},"_npmUser":{"name":"evecalm","email":"evecalm@live.cn"},"repository":{"url":"git+https://evecalm@github.com/evecalm/truncate-html.git","type":"git"},"_npmVersion":"5.6.0","description":"Truncate HTML and Keep Tags","directories":{},"_nodeVersion":"9.5.0","dependencies":{"cheerio":"0.22.0"},"devDependencies":{"jest":"22.1.4","buble":"0.18.0","eslint":"^4.16.0","rollup":"0.55.3","babel-core":"6.26.0","babel-eslint":"^8.2.1","eslint-plugin-node":"^5.2.1","babel-preset-es2015":"6.24.1","rollup-plugin-buble":"0.18.0","eslint-plugin-import":"^2.8.0","eslint-plugin-promise":"^3.6.0","eslint-config-standard":"^11.0.0-beta.0","eslint-plugin-standard":"^3.0.1","eslint-friendly-formatter":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/truncate-html-1.0.0-rc.2.tgz_1517649367827_0.5148775952402502","host":"s3://npm-registry-packages"}},"1.0.0-rc.3":{"name":"truncate-html","version":"1.0.0-rc.3","keywords":["truncate html","html","truncate"],"author":{"name":"Saiya"},"license":"MIT","_id":"truncate-html@1.0.0-rc.3","maintainers":[{"name":"evecalm","email":"evecalm@live.cn"}],"homepage":"https://github.com/evecalm/truncate-html#readme","bugs":{"url":"https://github.com/evecalm/truncate-html/issues"},"dist":{"shasum":"88bc0d51e2351ba31826fd9816274ea3b142b4f9","tarball":"https://registry.npmjs.org/truncate-html/-/truncate-html-1.0.0-rc.3.tgz","integrity":"sha512-4z2HYa+uH6YJMex7S4w1gxwohvYrpvBV3cjKxzy/bz79Z+O833gFnWzEKl1UVyXUh4UsY8iRqa7YuSqLNVqxsw==","signatures":[{"sig":"MEQCIHZ9EoJN5Pnjv+OSjukyVcpD5v3ICStn8XlsEg6XVMGgAiAv6U2pRNlQhoa5NEScFkrW8+9iS4dRkp3RjRqnq1RZLg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/truncate.cjs.js","module":"dist/truncate.es.js","gitHead":"8e4bde9ac51f1ccf56783e337fae8e76de22ed5d","scripts":{"dev":"npm run build:dir","lint":"eslint --ext .js -f ./node_modules/eslint-friendly-formatter --fix src","test":"jest --coverage","build":"npm run lint && npm run test && npm run build:dir","build:dir":"rollup -c --environment format:cjs && rollup -c --environment format:es","test:server":"jest --coverage --watch"},"_npmUser":{"name":"evecalm","email":"evecalm@live.cn"},"repository":{"url":"git+https://evecalm@github.com/evecalm/truncate-html.git","type":"git"},"_npmVersion":"5.6.0","description":"Truncate HTML and Keep Tags","directories":{},"_nodeVersion":"9.5.0","dependencies":{"cheerio":"0.22.0"},"devDependencies":{"jest":"22.1.4","buble":"0.18.0","eslint":"^4.16.0","rollup":"0.55.3","babel-core":"6.26.0","babel-eslint":"^8.2.1","eslint-plugin-node":"^5.2.1","babel-preset-es2015":"6.24.1","rollup-plugin-buble":"0.18.0","eslint-plugin-import":"^2.8.0","eslint-plugin-promise":"^3.6.0","eslint-config-standard":"^11.0.0-beta.0","eslint-plugin-standard":"^3.0.1","eslint-friendly-formatter":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/truncate-html-1.0.0-rc.3.tgz_1517649503263_0.9499131843913347","host":"s3://npm-registry-packages"}},"1.0.0-rc.4":{"name":"truncate-html","version":"1.0.0-rc.4","keywords":["truncate html","html","truncate"],"author":{"name":"Saiya"},"license":"MIT","_id":"truncate-html@1.0.0-rc.4","maintainers":[{"name":"evecalm","email":"evecalm@live.cn"}],"homepage":"https://github.com/evecalm/truncate-html#readme","bugs":{"url":"https://github.com/evecalm/truncate-html/issues"},"dist":{"shasum":"6d57693f031b2656f70a250e7259e8534565043e","tarball":"https://registry.npmjs.org/truncate-html/-/truncate-html-1.0.0-rc.4.tgz","integrity":"sha512-KXjyM/6KvSDN8uHi8cQVWTd0krrdpVOSSz21uwAZZxRZX46FEWaGQohef0NlbVmAXlj/DhBjZCId9V1FRwcTvA==","signatures":[{"sig":"MEYCIQC5GYL22Pvxrl7VNZ+jh2/n2RWVhgweg2hEqfus6w8qVwIhAN7ik1q4CEeOs165e1g+Lpx/0lipjLSlfIVOGYhg9/NZ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/truncate.cjs.js","module":"dist/truncate.es.js","gitHead":"2ff1065ed0e70604202d1100fdc7bb37e6d63096","scripts":{"dev":"npm run build:dir","lint":"eslint --ext .js -f ./node_modules/eslint-friendly-formatter --fix src","test":"jest --coverage","build":"npm run lint && npm run test && npm run build:dir","build:dir":"rollup -c --environment format:cjs && rollup -c --environment format:es","test:server":"jest --coverage --watch"},"_npmUser":{"name":"evecalm","email":"evecalm@live.cn"},"repository":{"url":"git+https://evecalm@github.com/evecalm/truncate-html.git","type":"git"},"_npmVersion":"5.6.0","description":"Truncate HTML and Keep Tags","directories":{},"_nodeVersion":"9.5.0","dependencies":{"cheerio":"0.22.0"},"devDependencies":{"jest":"22.1.4","buble":"0.18.0","eslint":"^4.16.0","rollup":"0.55.3","babel-core":"6.26.0","babel-eslint":"^8.2.1","eslint-plugin-node":"^5.2.1","babel-preset-es2015":"6.24.1","rollup-plugin-buble":"0.18.0","eslint-plugin-import":"^2.8.0","eslint-plugin-promise":"^3.6.0","eslint-config-standard":"^11.0.0-beta.0","eslint-plugin-standard":"^3.0.1","eslint-friendly-formatter":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/truncate-html-1.0.0-rc.4.tgz_1517675115944_0.8611316555179656","host":"s3://npm-registry-packages"}},"1.0.0-rc.5":{"name":"truncate-html","version":"1.0.0-rc.5","keywords":["truncate html","html","truncate"],"author":{"url":"https://github.com/evecalm","name":"Saiya"},"license":"MIT","_id":"truncate-html@1.0.0-rc.5","maintainers":[{"name":"evecalm","email":"evecalm@live.cn"}],"contributors":[{"url":"https://github.com/calebeno","name":"Caleb Eno"}],"homepage":"https://github.com/evecalm/truncate-html#readme","bugs":{"url":"https://github.com/evecalm/truncate-html/issues"},"dist":{"shasum":"4c9c423cad23ef77c456246fd4565aa7a5321f24","tarball":"https://registry.npmjs.org/truncate-html/-/truncate-html-1.0.0-rc.5.tgz","fileCount":13,"integrity":"sha512-iAywV1e6Ms7NJLRrHjAWWWUa7mZMsKIRooXtp749q3fgPmHMEXLPQzvSMM5cGjzbKyIPqTdaiQFIIoOYaI8+5w==","signatures":[{"sig":"MEUCIAmWWE/3a6kL4RmhFRBBB0WUg/V+FUxnF7MlGLccaSSeAiEA/C/WBUO4/y5QiV4/uvtBkNysooaAft7jn48ZAKPoKto=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":49191},"main":"dist/truncate.cjs.js","module":"dist/truncate.es.js","gitHead":"462330e7da76ffe732f6b3f5afa915488ec07569","scripts":{"dev":"npm run build:dir","lint":"eslint --ext .js -f ./node_modules/eslint-friendly-formatter --fix src","test":"jest --coverage","build":"npm run lint && npm run test && npm run build:dir","build:dir":"rollup -c --environment format:cjs && rollup -c --environment format:es","test:server":"jest --coverage --watch"},"_npmUser":{"name":"evecalm","email":"evecalm@live.cn"},"repository":{"url":"git+https://evecalm@github.com/evecalm/truncate-html.git","type":"git"},"_npmVersion":"5.6.0","description":"Truncate HTML and Keep Tags","directories":{},"_nodeVersion":"9.5.0","dependencies":{"cheerio":"0.22.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"22.1.4","buble":"0.18.0","eslint":"^4.16.0","rollup":"0.55.3","babel-core":"6.26.0","babel-eslint":"^8.2.1","eslint-plugin-node":"^5.2.1","babel-preset-es2015":"6.24.1","rollup-plugin-buble":"0.18.0","eslint-plugin-import":"^2.8.0","eslint-plugin-promise":"^3.6.0","eslint-config-standard":"^11.0.0-beta.0","eslint-plugin-standard":"^3.0.1","eslint-friendly-formatter":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/truncate-html_1.0.0-rc.5_1519366833132_0.07121842368187425","host":"s3://npm-registry-packages"}},"1.0.0-rc.6":{"name":"truncate-html","version":"1.0.0-rc.6","keywords":["truncate html","html","truncate"],"author":{"url":"https://github.com/evecalm","name":"Saiya"},"license":"MIT","_id":"truncate-html@1.0.0-rc.6","maintainers":[{"name":"evecalm","email":"evecalm@live.cn"}],"contributors":[{"url":"https://github.com/calebeno","name":"Caleb Eno"}],"homepage":"https://github.com/evecalm/truncate-html#readme","bugs":{"url":"https://github.com/evecalm/truncate-html/issues"},"dist":{"shasum":"bbfc9edb929934315e101592e6a5421aa85da5f7","tarball":"https://registry.npmjs.org/truncate-html/-/truncate-html-1.0.0-rc.6.tgz","fileCount":14,"integrity":"sha512-cs9TXt0G9y+Uw0PpWBXJa4hdKBVtyT6WBj3tEZ7D4jfSAJKpfbx+Gfoj+Z/6NuEFzBhNnB++PSxzuMkWF61p5Q==","signatures":[{"sig":"MEYCIQC0lGbRPMm1PkvKUGiozAkujSAOL1BUVEtKjgW4e9cZ/wIhAP3B8VKllAW+Q0nrXvD0uG+YD5DpJtE9gOmCMDTYU4lG","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":55589},"main":"dist/truncate.cjs.js","module":"dist/truncate.es.js","gitHead":"05182674b728c6ed4a39209ac79f8811acb3f98d","scripts":{"dev":"npm run build:dir","lint":"eslint --ext .js -f ./node_modules/eslint-friendly-formatter --fix src","test":"jest --coverage","build":"npm run lint && npm run test && npm run build:dir","build:dir":"npm run clean:builddir && rollup -c --environment format:cjs && rollup -c --environment format:es","test:server":"jest --coverage --watch","clean:builddir":"rimraf dist/*","prepublishOnly":"npm run build"},"_npmUser":{"name":"evecalm","email":"evecalm@live.cn"},"repository":{"url":"git+https://evecalm@github.com/evecalm/truncate-html.git","type":"git"},"_npmVersion":"5.6.0","description":"Truncate HTML and Keep Tags","directories":{},"_nodeVersion":"9.5.0","dependencies":{"cheerio":"0.22.0"},"_hasShrinkwrap":true,"devDependencies":{"jest":"22.1.4","buble":"0.18.0","eslint":"4.18.1","rimraf":"2.6.2","rollup":"0.55.3","babel-core":"6.26.0","babel-eslint":"8.2.1","eslint-plugin-node":"6.0.1","babel-preset-es2015":"6.24.1","rollup-plugin-buble":"0.18.0","eslint-plugin-import":"2.9.0","eslint-plugin-promise":"3.6.0","eslint-config-standard":"11.0.0","eslint-plugin-standard":"3.0.1","eslint-friendly-formatter":"3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/truncate-html_1.0.0-rc.6_1520493485577_0.8168552288704214","host":"s3://npm-registry-packages"}},"1.0.0":{"name":"truncate-html","version":"1.0.0","keywords":["truncate html","html","truncate"],"author":{"url":"https://github.com/evecalm","name":"Saiya"},"license":"MIT","_id":"truncate-html@1.0.0","maintainers":[{"name":"evecalm","email":"evecalm@live.cn"}],"contributors":[{"url":"https://github.com/calebeno","name":"Caleb Eno"}],"homepage":"https://github.com/evecalm/truncate-html#readme","bugs":{"url":"https://github.com/evecalm/truncate-html/issues"},"dist":{"shasum":"5a0e03c3dbc4bb739f8023629958acf956b94641","tarball":"https://registry.npmjs.org/truncate-html/-/truncate-html-1.0.0.tgz","fileCount":6,"integrity":"sha512-B2spa6C6gjAClaxCWVwDqFrGH9j7lhbuc+cyNUwtFx9EKWGtzuU2X0FRBs3L46zRfKDO0mY08JzujLRsQtioug==","signatures":[{"sig":"MEQCIG+/APoGh9ZNq+bZQssfy0Tu3t1W6UM68JtvqsorVd9LAiATyXiV6z8M0pgi7GNdMjsh6Yn8ERJy6kRgBIj/f56AdQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":32887},"main":"dist/truncate.cjs.js","module":"dist/truncate.es.js","gitHead":"56926769b6331f70206de064c3481bce3840be60","scripts":{"dev":"npm run build:dir","lint":"eslint --ext .js -f ./node_modules/eslint-friendly-formatter --fix src","test":"jest --coverage","build":"npm run lint && npm run test && npm run build:dir","build:dir":"npm run clean:builddir && rollup -c --environment format:cjs && rollup -c --environment format:es","postpublish":"./post-publish2npm.sh","test:server":"jest --coverage --watch","clean:builddir":"rimraf dist/*"},"_npmUser":{"name":"evecalm","email":"evecalm@live.cn"},"repository":{"url":"git+https://evecalm@github.com/evecalm/truncate-html.git","type":"git"},"_npmVersion":"5.6.0","description":"Truncate HTML and Keep Tags","directories":{},"_nodeVersion":"9.5.0","dependencies":{"cheerio":"0.22.0"},"_hasShrinkwrap":true,"devDependencies":{"jest":"22.1.4","buble":"0.18.0","eslint":"4.18.1","rimraf":"2.6.2","rollup":"0.55.3","babel-core":"6.26.0","babel-eslint":"8.2.1","eslint-plugin-node":"6.0.1","babel-preset-es2015":"6.24.1","rollup-plugin-buble":"0.18.0","eslint-plugin-import":"2.9.0","eslint-plugin-promise":"3.6.0","eslint-config-standard":"11.0.0","eslint-plugin-standard":"3.0.1","eslint-friendly-formatter":"3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/truncate-html_1.0.0_1521387528963_0.3405760381198728","host":"s3://npm-registry-packages"}},"1.0.1-rc.1":{"name":"truncate-html","version":"1.0.1-rc.1","keywords":["truncate html","html","truncate"],"author":{"url":"https://github.com/evecalm","name":"Saiya"},"license":"MIT","_id":"truncate-html@1.0.1-rc.1","maintainers":[{"name":"evecalm","email":"evecalm@live.cn"}],"contributors":[{"url":"https://github.com/calebeno","name":"Caleb Eno"}],"homepage":"https://github.com/evecalm/truncate-html#readme","bugs":{"url":"https://github.com/evecalm/truncate-html/issues"},"dist":{"shasum":"579798c5707d6e3506203586651c395d2a4f1cba","tarball":"https://registry.npmjs.org/truncate-html/-/truncate-html-1.0.1-rc.1.tgz","fileCount":7,"integrity":"sha512-GrCMT5JW/jrUEBVgd5afdjsn9kggP/YNt9BZdsjR3p7/dwEY0iDRgTMBS/7Qo4FcfNdOjorwdAw0oTUsjVLGkw==","signatures":[{"sig":"MEQCICygZSp0kT7oJKYBD4PvLXDShPV7m+l8Ysf9ipkRzZrnAiB4WE50jDCmtBpG5q7abJbHu81wokpk0lIUll4U/YPmeA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":150539,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbdYbdCRA9TVsSAnZWagAAJckQAJ062S0vBxeBdvmmMFSb\nlVe9ZJJkYUCLwR9ql8Tbn0IlDucA3SkIipYa+n/hyCK1hUYyJ1WWIr7akarH\nqv3KvCHfy9nnvrW53jGum5D09rMoqIWagpKQ/BpwA5oBu9bO1yeMRbDQmWyv\nsyfjYI6Rr7jMoBNL6X/ZxfjAdl7nAKNp17QRU3DjQ7+MVAu/NlhHpur2WsrE\nk8NP/UgyLtGHV3xSypfmq+S4xiTDzR5rWlnt0jfFGorR/7jhwNW2GDdzGpq1\n/imobMQI+nbnBr9TxujMvjlitJVp4EYF4HKR2N3pvsloBmeaFx9xatDv2XHV\nHpP0tpglfbWEBMrCuT1J3R693F4t6OGHoNoRT6fJ7C2D1G18CcZuNMIxjfLp\nsyNdDC1nBF3xaCd+dnpSsBBsqhPmrvgTY2YLLRhVerHLez1SBBge/8LIrhYj\nRHUg3fneTbeMs4IP0DjoXG/3pYZvcFuSQetzM5Quo0EtSVSBXwkZyToJWsm9\nOHwT79FsOSXYiCst2IELCOCpwBmVKm2MPHJpyjxxRGY+0fxCj3bbkTgBELUf\niMlYMi8YNgOALJpNvqwPjuk8zxcWhwysnbjqImIM7qLDSpWOi8Jlte8HMSwk\nr10/VKKm7k03Nff1e8oJhNkD9OwrorbyOmD7T3btsqeVkbiPJhXp0NmO5Gpt\nuJaL\r\n=PDv8\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testURL":"http://localhost/","verbose":true,"testRegex":"(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$","transform":{"^.+\\.tsx?$":"ts-jest"},"moduleFileExtensions":["ts","tsx","js","jsx","json","node"]},"main":"dist/truncate.cjs.js","module":"dist/truncate.es.js","gitHead":"31da7cc6cc7c1619449ecacc0258270b3518ea93","scripts":{"dev":"npm run build:dir","lint":"tslint --project ./tsconfig.json --config tslint.json","test":"jest --coverage","build":"npm run lint && npm run test && npm run build:dir","build:dir":"npm run clean:builddir && rollup -c --environment format:cjs && rollup -c --environment format:es","postpublish":"./post-publish2npm.sh","test:server":"jest --coverage --watch","clean:builddir":"rimraf dist/*"},"typings":"dist/truncate.d.ts","_npmUser":{"name":"evecalm","email":"evecalm@live.cn"},"repository":{"url":"git+https://evecalm@github.com/evecalm/truncate-html.git","type":"git"},"_npmVersion":"5.6.0","description":"Truncate HTML and Keep Tags","directories":{},"_nodeVersion":"8.11.3","dependencies":{"cheerio":"0.22.0","@types/cheerio":"^0.22.8"},"_hasShrinkwrap":false,"devDependencies":{"jest":"22.1.4","buble":"0.18.0","rimraf":"2.6.2","rollup":"0.55.3","tslint":"^5.11.0","ts-jest":"^23.0.1","typescript":"^3.0.1","@types/jest":"^23.3.1","@types/node":"^10.5.5","rollup-plugin-buble":"0.18.0","tslint-config-prettier":"^1.14.0","tslint-config-standard":"^7.1.0","rollup-plugin-typescript2":"^0.16.1"},"_npmOperationalInternal":{"tmp":"tmp/truncate-html_1.0.1-rc.1_1534428892671_0.8787681914379013","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"truncate-html","version":"1.0.1","keywords":["truncate html","html","truncate"],"author":{"url":"https://github.com/evecalm","name":"Saiya"},"license":"MIT","_id":"truncate-html@1.0.1","maintainers":[{"name":"evecalm","email":"evecalm@live.cn"}],"contributors":[{"url":"https://github.com/calebeno","name":"Caleb Eno"}],"homepage":"https://github.com/evecalm/truncate-html#readme","bugs":{"url":"https://github.com/evecalm/truncate-html/issues"},"dist":{"shasum":"6f1d03cbb2308bfda266f9ce8f25e62c66919d4f","tarball":"https://registry.npmjs.org/truncate-html/-/truncate-html-1.0.1.tgz","fileCount":7,"integrity":"sha512-4Yw02HZAhGTGZsW2aNB7GtoF/SG4yPVlS4V42tehY1ZorZhIIZpdUuocdGB7W30J8WHzgOYmyhBzMTx/362Cew==","signatures":[{"sig":"MEQCIAjeBaCBUaR4p4BRQLL1U0WdL2HG8kuxrM9fNgeZBx/KAiBlMcejURXWdzBLXI5kaRv9uiTTCOmn33w2Npc8zt3GKg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":150525,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbh6E+CRA9TVsSAnZWagAAD1AP/R6AS7n/Cah3MDWBw6wa\n8WXoSRsYyo4Yl7E1/u6RVlRJSHLREyoie2h8YbbTUs9XiZvcx9S6cP3cazu5\nw3WvI6VsBuvJjtmO03Cbx8zBEWJLPOeTB/lulDDIZgsUYnhem0pebLf024+J\nz4vTGo5w4gBwQaDCRLCsTI9qDBQFm5gvkdeTRcXkuPEHZU3zbYS9yD+WxG7R\nQ+rXCiJQMGvdm7OEdwc0EipBPBicQQDRamzBGCVeRwx2hM3M4tnSTkic4ec/\n2H8VcNsxxGDH9fBHPT89Cw104sp7NIMyEXKnuoedrGinKT3FWrblYiEcKmRR\niNcgiyuF2TlaQb6A9034CfPF0zAUG0lpdr+W/iP5+OBzmIVgmGQLbcQ6sMMG\nk9shce3IBZAU67bwx6HlV7AvJvvEzELAIdtopEngVuRlSgvpq75uLVXsz5As\np0wa9NXpCS0cnUzlSSLRfenPPK9+qgaNlZdJ4AZZRFSPOVbiav+ZU4gzimPf\nhzNvi663hprbFh4AllcJBS8+mmpH+t3jjJW5yW5Luh5RnaJ5SKCLy93kjgAb\nx9kyP3dQfUoG47+iASSUdj8cZLViCPnnOu9l1cbf6buN4StoMEJqrC9YU43k\nj/zlwBMsVeoUIILVrXiVA1xcAL/NWtlB3c5R7TQjqYfBDlG7kBisx2PNIbgK\nLKul\r\n=V6Nr\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testURL":"http://localhost/","verbose":true,"testRegex":"(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$","transform":{"^.+\\.tsx?$":"ts-jest"},"moduleFileExtensions":["ts","tsx","js","jsx","json","node"]},"main":"dist/truncate.cjs.js","module":"dist/truncate.es.js","gitHead":"56f5873d123d5831afb1237cb856f92f6101ba48","scripts":{"dev":"npm run build:dir","lint":"tslint --project ./tsconfig.json --config tslint.json","test":"jest --coverage","build":"npm run lint && npm run test && npm run build:dir","build:dir":"npm run clean:builddir && rollup -c --environment format:cjs && rollup -c --environment format:es","postpublish":"./post-publish2npm.sh","test:server":"jest --coverage --watch","clean:builddir":"rimraf dist/*"},"typings":"dist/truncate.d.ts","_npmUser":{"name":"evecalm","email":"evecalm@live.cn"},"repository":{"url":"git+https://evecalm@github.com/evecalm/truncate-html.git","type":"git"},"_npmVersion":"5.6.0","description":"Truncate HTML and Keep Tags","directories":{},"_nodeVersion":"8.11.4","dependencies":{"cheerio":"0.22.0","@types/cheerio":"^0.22.8"},"_hasShrinkwrap":false,"devDependencies":{"jest":"22.1.4","buble":"0.18.0","rimraf":"2.6.2","rollup":"0.55.3","tslint":"^5.11.0","ts-jest":"^23.0.1","typescript":"^3.0.1","@types/jest":"^23.3.1","@types/node":"^10.5.5","rollup-plugin-buble":"0.18.0","tslint-config-prettier":"^1.14.0","tslint-config-standard":"^7.1.0","rollup-plugin-typescript2":"^0.16.1"},"_npmOperationalInternal":{"tmp":"tmp/truncate-html_1.0.1_1535615292858_0.6087752895280898","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"truncate-html","version":"1.0.2","keywords":["truncate html","html","truncate"],"author":{"url":"https://github.com/evecalm","name":"Saiya"},"license":"MIT","_id":"truncate-html@1.0.2","maintainers":[{"name":"evecalm","email":"evecalm@live.cn"}],"contributors":[{"url":"https://github.com/calebeno","name":"Caleb Eno"},{"url":"https://github.com/aaditya-thakkar","name":"Aaditya Thakkar"}],"homepage":"https://github.com/evecalm/truncate-html#readme","bugs":{"url":"https://github.com/evecalm/truncate-html/issues"},"dist":{"shasum":"ff86906abd349bc3abbdc72c90590efe2fbd1e7e","tarball":"https://registry.npmjs.org/truncate-html/-/truncate-html-1.0.2.tgz","fileCount":7,"integrity":"sha512-QtzllbVLKLvRyB7deBizCrZP6jdwWVU9Ix/Gag+WySQrySiu+1MUe3s0R/Z0IgfGHwQqkh0RVUgp9MRiP9YVJw==","signatures":[{"sig":"MEQCIGRq9hdDFKqpAQSgOVf/1qqOR5HP5xoaKUcASJr8+xrJAiAM3Ayhb6ow9e6RV/AxuqkHld3CeT30jJwXp9khHFOf1w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":33951,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcsbenCRA9TVsSAnZWagAAnzkP/R+MX2r6QOWYe8ZPtAK/\nmcMPTkbeHE6+ySpoXtp0Rr1ediD2mPxoD/rHUlECYNUgqI7hQXhhs3oT8/XU\npcPuT94IeSTVyEbzSci+7QuWnQLdZ4Bde+50PGzbvBkZVq1FkpDR7qOtG2C5\nQyQNgi3SKH0Neee/GkcYdCVAd8ShivxRSRyQo+T/Qt+QiYTOUyUeiNeQoE9O\nf3+fO1yW1wSDpMNpfZMXpOlZjv4+5kCVXaAgMcrvtdBU+ZILK5+D5CCCbeY8\nCYVZ41YV0oQcWDihEGQHV3qQ8gDvNGisEWUigLFtubvxqJJQ/+b9n4NTIPWa\nkvLbeCCasIqn+sRFw8pbPlTaJpcS/yUuMvMjq9laGJGElB7hvS8zhHHUCYhL\n/mCPFJhAP/gByGGTCSL9USkpADv7E2PgBjD0CwDNfiE/mkHgv2+fNCtj/pQ5\nYNwL2xgAQI7J9wYQnhATac42dpp86xBYhQ03UCId2hV0k1uwIrWesABwMJCP\nuLsjWtzFRpxGEFH+ny0mPM/sfOJuQeJZJKqMEFQDrVSEYMn+/zNGYKlSzpla\nUIfEEJhPLaPU8IVaoRDM2pH/6+6KfxabYTa3jlPFzyHJ7MnFelBMD3XD8WhC\nkS8PZIGGfEaKB17tQZifsyUV5RP1DLyOByMtY2qUqJS79nfyrBLb8vcsth2L\nbWO0\r\n=FmN2\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testURL":"http://localhost/","verbose":true,"testRegex":"(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$","transform":{"^.+\\.tsx?$":"ts-jest"},"moduleFileExtensions":["ts","tsx","js","jsx","json","node"]},"main":"dist/truncate.cjs.js","module":"dist/truncate.es.js","gitHead":"31bac538894b14db0b68488b9f62d898dd03652b","scripts":{"dev":"ts-node ./test/demo.ts","lint":"tslint --project ./tsconfig.json --config tslint.json","test":"jest --coverage","build":"rollup -c rollup.config.ts","prebuild":"npm run lint && npm run test && npm run clean:builddir","prepublish":"npm run build","postpublish":"./post-publish2npm.sh","test:server":"jest --coverage --watch","clean:builddir":"rimraf dist/*"},"typings":"dist/truncate.d.ts","_npmUser":{"name":"evecalm","email":"evecalm@live.cn"},"repository":{"url":"git+https://evecalm@github.com/evecalm/truncate-html.git","type":"git"},"_npmVersion":"6.9.0","description":"Truncate HTML and Keep Tags","directories":{},"_nodeVersion":"8.14.0","dependencies":{"cheerio":"0.22.0","@types/cheerio":"^0.22.8"},"_hasShrinkwrap":false,"devDependencies":{"jest":"22.1.4","buble":"0.18.0","rimraf":"2.6.2","rollup":"0.55.3","tslint":"^5.11.0","ts-jest":"^23.0.1","ts-node":"^7.0.1","typescript":"^3.0.1","@types/jest":"^23.3.1","@types/node":"^10.5.5","rollup-plugin-buble":"0.18.0","tslint-config-prettier":"^1.14.0","tslint-config-standard":"^7.1.0","rollup-plugin-typescript2":"^0.16.1"},"_npmOperationalInternal":{"tmp":"tmp/truncate-html_1.0.2_1555150758014_0.7175884260741601","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"truncate-html","version":"1.0.3","keywords":["truncate html","html","truncate"],"author":{"url":"https://github.com/evecalm","name":"Saiya"},"license":"MIT","_id":"truncate-html@1.0.3","maintainers":[{"name":"evecalm","email":"evecalm@live.cn"}],"contributors":[{"url":"https://github.com/calebeno","name":"Caleb Eno"},{"url":"https://github.com/aaditya-thakkar","name":"Aaditya Thakkar"}],"homepage":"https://github.com/evecalm/truncate-html#readme","bugs":{"url":"https://github.com/evecalm/truncate-html/issues"},"dist":{"shasum":"0166dfc7890626130c2e4174c6b73d4d63993e5f","tarball":"https://registry.npmjs.org/truncate-html/-/truncate-html-1.0.3.tgz","fileCount":8,"integrity":"sha512-1o1prdRv+iehXcGwn29YgXU17DotHkr+OK3ijVEG7FGMwHNG9RyobXwimw6djDvbIc24rhmz3tjNNvNESjkNkQ==","signatures":[{"sig":"MEUCIGzaGuHNjqXA0mG7BfZa1oPf73hEADe+NlXqqfQeMH3PAiEAppPoq1I/O2X/IgyEoaCRZokcuc4gWHgZC2di8J6vPOE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":193153,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdU+7FCRA9TVsSAnZWagAAZTUP/j7ZFUUiO6LNCtMkUO0a\n9uCidAHZrv/DblZAspYgZt9m4SwjmyS+Z3wasbPa9sCP/UEjZTPrlUNnbh/r\nomg/T7SwKO1Ir0N0k/dAuhsmBXkhtB4ERGKA3SFx7JBas8BfS8NwYXp/M2b/\nE+OHh3E5VHvbBpdMUScyAMj3pU9Aw2t3vjCorLio85esCMDSth1CmYy1HAzO\nuGNp0cqohU3IuzVsfApeEkYE8HLS+lYuBImugQb7Pg+wVu2HQgWEPkd7Xiil\nUw4/Fy1ypl1Yu+s2iUGto8DL9n97GHlOpL75PO/sSnzZviU7TqPpqionxvFM\nLfmvQ8BpY0Zlsuh/jlgk2wb7ejQKmkiZ+6MBfZlACUlQ6tG9mUyK5Ybujbgk\nEfHlU9sOZ77JEjRp0QlCb5EnS1ooj9qccIJlB3Y+nObGnqveO/KNogXEtXVi\nGn2j0QhTgMdaGl97aMnawIHNgxpA0ddH6DhSvJ8nIJ0Rrqhw32mO+dRyPJQ3\nR35rNVYbeeiSwfXPkSS7sAm9uoDdhbxLhclsosdQQrbuJZiFh2V6iAnZqTcx\npEx1vVzg4JdquTn3VkP5n5kc4nY2vfwrMfSar+2igFFQT03vRO6aHJDHm29k\naaihjYgXx/odLNitvSqpUm5IZnhaEdqKnY+pJSoXitWR187ZvQNie1gYePw1\nY1ii\r\n=pAmH\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testURL":"http://localhost/","verbose":true,"testRegex":"(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$","transform":{"^.+\\.tsx?$":"ts-jest"},"moduleFileExtensions":["ts","tsx","js","jsx","json","node"]},"main":"dist/truncate.cjs.js","module":"dist/truncate.es.js","gitHead":"1c5d50ecd1ed57cf18f78af1f6a7494eb69ff272","scripts":{"dev":"ts-node ./test/demo.ts","lint":"tslint --project ./tsconfig.json --config tslint.json","test":"jest --coverage","build":"rollup -c rollup.config.ts","prebuild":"npm run lint && npm run test && npm run clean:builddir","prepublish":"npm run build","postpublish":"./post-publish2npm.sh","test:server":"jest --coverage --watch","clean:builddir":"rimraf dist/*"},"typings":"dist/truncate.d.ts","_npmUser":{"name":"evecalm","email":"evecalm@live.cn"},"repository":{"url":"git+https://evecalm@github.com/evecalm/truncate-html.git","type":"git"},"_npmVersion":"6.7.0","description":"Truncate HTML and Keep Tags","directories":{},"_nodeVersion":"11.14.0","dependencies":{"cheerio":"0.22.0","@types/cheerio":"^0.22.8"},"_hasShrinkwrap":false,"devDependencies":{"jest":"22.1.4","buble":"0.18.0","rimraf":"2.6.2","rollup":"0.55.3","tslint":"^5.11.0","ts-jest":"^23.0.1","ts-node":"^7.0.1","typescript":"^3.0.1","@types/jest":"^23.3.1","@types/node":"^10.5.5","rollup-plugin-buble":"0.18.0","tslint-config-prettier":"^1.14.0","tslint-config-standard":"^7.1.0","rollup-plugin-typescript2":"^0.16.1"},"_npmOperationalInternal":{"tmp":"tmp/truncate-html_1.0.3_1565781700717_0.12300723191552843","host":"s3://npm-registry-packages"}},"1.0.4":{"name":"truncate-html","version":"1.0.4","keywords":["truncate html","html","truncate"],"author":{"url":"https://github.com/evecalm","name":"Saiya"},"license":"MIT","_id":"truncate-html@1.0.4","maintainers":[{"name":"evecalm","email":"evecalm@live.cn"}],"contributors":[{"url":"https://github.com/calebeno","name":"Caleb Eno"},{"url":"https://github.com/aaditya-thakkar","name":"Aaditya Thakkar"}],"homepage":"https://github.com/evecalm/truncate-html#readme","bugs":{"url":"https://github.com/evecalm/truncate-html/issues"},"dist":{"shasum":"268de7ba2650d697d748f1692a78197a88886e9d","tarball":"https://registry.npmjs.org/truncate-html/-/truncate-html-1.0.4.tgz","fileCount":9,"integrity":"sha512-FpDAlPzpJ3jlZiNEahRs584FS3jOSQafgj4cC9DmAYPct6uMZDLY625+eErRd43G35vGDrNq3i7b4aYUQ/Bxqw==","signatures":[{"sig":"MEYCIQC2mXadgeO3tcHBsICtrPhIV6ufAiUsVAjk4Kp9/b00kgIhALjVHItY6QIisw66DK6ixWF/zbMAKootGUvw6vy1wLQ2","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":35791,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg59rZCRA9TVsSAnZWagAA1LQQAISqdX8/o54mT6dJkpjy\n7rHTpUPTrm5OFVtLK2++Xzr1KNYxk6fM8Rum2NUVZCZzPjq4zbcZs4hCRgHo\neLLy7iu3Jub3QiiMknIdhC51hqrmwWylwOvnPUiGdoW+klPzyqvSB4mKfIM+\nqvOI0tjYfcQ+AamCBFa5hkiA68pZSlEbbEh2zbKV9rvRd6ktoqZGG1q96XDt\nKvsUFc1QNBtV/deT7iaeX87zsRBW/7jblDlXAxl29h1a677/iMI+9oPyBSrL\ne7cHXQeN7nYp04wd6+Nx9oEMQDCcMb2ASv5JLjeL4OTI4E5ghr5rAbnfQzYC\n2nfbqZ2UAM5DnENDVOhp/IjejkW+7nU48ieQvAIuWfaowmQY5S+dV93T6tQF\nDnF4yHGQy99UWY7plNlZo445JkPhm531iFtdTVJHYXf316n5OmiYtkS45loj\nMoPL0+Oxxf4kq9z8JQf1SxFtPVQgo86vem9/hHWp6CDRaIBbnyocWs4dEZ6T\ndDLtgg8mmZWdp/niKuhvk4Xl3KBILmnOB2YZfvYQntZix59y+OgpcyIxECEB\nLK9v7y8mpvE7zGETSlZHNyQajjyuy951dE47b46guj3nFILdxLgrm3XQm6Ab\n2GPnc6W/V/079Uj7W3R2d2Cjk1CLo4eg6wBC3ri9qNoE1cTa1jPreV8jvuXf\n/rVj\r\n=Do0+\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testURL":"http://localhost/","verbose":true,"testRegex":"(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$","transform":{"^.+\\.tsx?$":"ts-jest"},"moduleFileExtensions":["ts","tsx","js","jsx","json","node"]},"main":"dist/truncate.cjs.js","module":"dist/truncate.es.js","scripts":{"dev":"ts-node ./test/demo.ts","lint":"tslint --project ./tsconfig.json --config tslint.json","test":"jest --coverage","build":"rollup -c rollup.config.ts","prebuild":"npm run lint && npm run test && npm run clean:builddir","prepublish":"npm run build","postpublish":"./post-publish2npm.sh","test:server":"jest --coverage --watch","clean:builddir":"rimraf dist/*"},"typings":"dist/truncate.d.ts","_npmUser":{"name":"evecalm","email":"evecalm@live.cn"},"repository":{"url":"git+https://evecalm@github.com/evecalm/truncate-html.git","type":"git"},"description":"Truncate HTML and Keep Tags","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2018 Saiya\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","dependencies":{"cheerio":"0.22.0","@types/cheerio":"^0.22.8"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^24.9.0","buble":"0.18.0","rimraf":"2.6.2","rollup":"0.55.3","tslint":"^5.11.0","ts-jest":"^24.0.2","ts-node":"^7.0.1","typescript":"^3.6.2","@types/jest":"^23.3.1","@types/node":"^10.5.5","rollup-plugin-buble":"^0.19.8","tslint-config-prettier":"^1.14.0","tslint-config-standard":"^7.1.0","rollup-plugin-typescript2":"0.18"},"_npmOperationalInternal":{"tmp":"tmp/truncate-html_1.0.4_1625807577235_0.7881365915585494","host":"s3://npm-registry-packages"}},"1.0.5-beta.1":{"name":"truncate-html","version":"1.0.5-beta.1","keywords":["truncate html","html","truncate"],"author":{"url":"https://github.com/evecalm","name":"Saiya"},"license":"MIT","_id":"truncate-html@1.0.5-beta.1","maintainers":[{"name":"evecalm","email":"evecalm@live.cn"}],"contributors":[{"url":"https://github.com/calebeno","name":"Caleb Eno"},{"url":"https://github.com/aaditya-thakkar","name":"Aaditya Thakkar"}],"homepage":"https://github.com/evecalm/truncate-html#readme","bugs":{"url":"https://github.com/evecalm/truncate-html/issues"},"dist":{"shasum":"ba06ab7395c831008de2bffd11de51cf30b75c33","tarball":"https://registry.npmjs.org/truncate-html/-/truncate-html-1.0.5-beta.1.tgz","fileCount":8,"integrity":"sha512-Bj4NGdIx/I3tAjq7GHmtE0Yt27Y7UYaUMBuOUBSCM+SxJvTW9QLsX7fP6ClkrnWNGX0aOiHQkezMosOXhzjQ8A==","signatures":[{"sig":"MEYCIQC2IPfOQZzYZDizVGFIQiFOKBJnnjLwUwk5vU5aFs1BIQIhAJfPMBWp54Ay4ec2NvpoHaxJ+YdIIkpDSUHZVttpVHtl","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":32243},"main":"dist/truncate.cjs.js","types":"dist/truncate.d.ts","module":"dist/truncate.es.js","source":"./src/truncate.ts","scripts":{"dev":"ts-node ./test/demo.ts","lint":"eslint src --ext .ts","test":"jest","build":"parcel build src/truncate.ts --no-source-maps","clean":"rimraf dist/*","prebuild":"npm run test && npm run lint && npm run clean","prepublish":"npm run build","test:server":"jest --watch"},"_npmUser":{"name":"evecalm","email":"evecalm@live.cn"},"repository":{"url":"git+https://evecalm@github.com/evecalm/truncate-html.git","type":"git"},"description":"Truncate HTML and Keep Tags","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2018 Saiya\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","dependencies":{"cheerio":"^1.0.0-rc.12"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.5.0","eslint":"^8.43.0","parcel":"^2.9.2","rimraf":"^5.0.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","typescript":"^5.1.3","@types/jest":"^29.5.2","@types/node":"^20.3.1","@parcel/packager-ts":"2.9.2","@typescript-eslint/parser":"^5.59.11","@typescript-eslint/eslint-plugin":"^5.59.11","@parcel/transformer-typescript-types":"2.9.2"},"_npmOperationalInternal":{"tmp":"tmp/truncate-html_1.0.5-beta.1_1686996287585_0.4310169283892775","host":"s3://npm-registry-packages"}},"1.0.5-beta.2":{"name":"truncate-html","version":"1.0.5-beta.2","keywords":["truncate html","html","truncate"],"author":{"url":"https://github.com/evecalm","name":"Saiya"},"license":"MIT","_id":"truncate-html@1.0.5-beta.2","maintainers":[{"name":"evecalm","email":"evecalm@live.cn"}],"contributors":[{"url":"https://github.com/calebeno","name":"Caleb Eno"},{"url":"https://github.com/aaditya-thakkar","name":"Aaditya Thakkar"}],"homepage":"https://github.com/evecalm/truncate-html#readme","bugs":{"url":"https://github.com/evecalm/truncate-html/issues"},"dist":{"shasum":"372c31f279d881a0913c601790c9f8e373a38fb7","tarball":"https://registry.npmjs.org/truncate-html/-/truncate-html-1.0.5-beta.2.tgz","fileCount":8,"integrity":"sha512-f4HGiHxf4Lzqc1qbNigp2RKScL/kH/mF02DfH48nho0eQ8rDyZqlWyF9BESiYN6jcR2iMuCLe2gQt66TV9nQAQ==","signatures":[{"sig":"MEUCIGUzo5MvxmRq7LLz8K4u3x2+LKAkUtVfBMeJJdNxY08zAiEAhJG3scI+N/1wIogQ91sXLujc0W8puZMyWECLAOInygg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":32094},"main":"dist/truncate.cjs.js","types":"dist/truncate.d.ts","module":"dist/truncate.es.js","source":"./src/truncate.ts","scripts":{"dev":"ts-node ./test/demo.ts","lint":"eslint src --ext .ts","test":"jest","build":"parcel build src/truncate.ts --no-source-maps","clean":"rimraf dist/*","prebuild":"npm run test && npm run lint && npm run clean","postbuild":"node ./scripts/post-build.js","prepublish":"npm run build","test:server":"jest --watch"},"_npmUser":{"name":"evecalm","email":"evecalm@live.cn"},"repository":{"url":"git+https://evecalm@github.com/evecalm/truncate-html.git","type":"git"},"description":"Truncate HTML and Keep Tags","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2018 Saiya\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","dependencies":{"cheerio":"^1.0.0-rc.12"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.5.0","eslint":"^8.43.0","parcel":"^2.9.2","rimraf":"^5.0.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","typescript":"^5.1.3","@types/jest":"^29.5.2","@types/node":"^20.3.1","@parcel/packager-ts":"2.9.2","@typescript-eslint/parser":"^5.59.11","@typescript-eslint/eslint-plugin":"^5.59.11","@parcel/transformer-typescript-types":"2.9.2"},"_npmOperationalInternal":{"tmp":"tmp/truncate-html_1.0.5-beta.2_1687004981400_0.3565507489537403","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"truncate-html","version":"1.1.0","keywords":["truncate html","html","truncate"],"author":{"url":"https://github.com/oe","name":"Saiya"},"license":"MIT","_id":"truncate-html@1.1.0","maintainers":[{"name":"evecalm","email":"evecalm@live.cn"}],"contributors":[{"url":"https://github.com/calebeno","name":"Caleb Eno"},{"url":"https://github.com/aaditya-thakkar","name":"Aaditya Thakkar"}],"homepage":"https://github.com/oe/truncate-html#readme","bugs":{"url":"https://github.com/oe/truncate-html/issues"},"dist":{"shasum":"508bd231398d852eb726023f2d285584b5a1952f","tarball":"https://registry.npmjs.org/truncate-html/-/truncate-html-1.1.0.tgz","fileCount":8,"integrity":"sha512-bCePQMswzEp93aTu8ZDJ2nmudT8KJdyR3oiqfzPvePqSDsHTy+0S9j2kNQzyItfdhfxqXEe8izoPUsVHgbNLQQ==","signatures":[{"sig":"MEQCIE/ZxPvQYzsFINzc2CqVNzw0IiFQekBTl0YIp5hndDg7AiA89I6zLGlgfSYEZ8QCqI9x6XkVD7stbQ+Bp5XtmeLabg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":32063},"main":"dist/truncate.cjs.js","types":"dist/truncate.d.ts","module":"dist/truncate.es.js","source":"./src/truncate.ts","scripts":{"dev":"ts-node ./test/demo.ts","lint":"eslint src --ext .ts","test":"jest","build":"parcel build src/truncate.ts --no-source-maps","clean":"rimraf dist/*","prebuild":"npm run test && npm run lint && npm run clean","postbuild":"node ./scripts/post-build.js","prepublish":"npm run build","test:server":"jest --watch"},"_npmUser":{"name":"evecalm","email":"evecalm@live.cn"},"repository":{"url":"git+https://oe@github.com/oe/truncate-html.git","type":"git"},"description":"Truncate HTML and Keep Tags","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2018 Saiya\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","dependencies":{"cheerio":"^1.0.0-rc.12"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.5.0","eslint":"^8.43.0","parcel":"^2.9.2","rimraf":"^5.0.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","typescript":"^5.1.3","@types/jest":"^29.5.2","@types/node":"^20.3.1","@parcel/packager-ts":"2.9.2","@typescript-eslint/parser":"^5.59.11","@typescript-eslint/eslint-plugin":"^5.59.11","@parcel/transformer-typescript-types":"2.9.2"},"_npmOperationalInternal":{"tmp":"tmp/truncate-html_1.1.0_1709391872041_0.7118915541335007","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"truncate-html","version":"1.1.1","keywords":["truncate html","html","truncate"],"author":{"url":"https://github.com/oe","name":"Saiya"},"license":"MIT","_id":"truncate-html@1.1.1","maintainers":[{"name":"evecalm","email":"evecalm@live.cn"}],"contributors":[{"url":"https://github.com/calebeno","name":"Caleb Eno"},{"url":"https://github.com/aaditya-thakkar","name":"Aaditya Thakkar"}],"homepage":"https://github.com/oe/truncate-html#readme","bugs":{"url":"https://github.com/oe/truncate-html/issues"},"dist":{"shasum":"f4b4e58fd5509c6d8be2e48c3cb461bb83b00ad8","tarball":"https://registry.npmjs.org/truncate-html/-/truncate-html-1.1.1.tgz","fileCount":8,"integrity":"sha512-8U5jgta8uapbnTId/h95a5EVFGld94V7pZ2iLH18lRppjx8+r/Zx0VdFYThRQEVjBhbG7W2Goiv+b1+kceeb7A==","signatures":[{"sig":"MEUCIFeBNCN48ZsrOxX0uhkwa2EIqpUOYg2BeOz8EHzfhzbuAiEAh2DFHzn1JctBoqkQ9VCRVpk4B9YbZFcAdbWkvcX33l4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":32323},"main":"dist/truncate.cjs.js","types":"dist/truncate.d.ts","module":"dist/truncate.es.js","source":"./src/truncate.ts","scripts":{"dev":"ts-node ./test/demo.ts","lint":"eslint src --ext .ts","test":"jest","build":"parcel build src/truncate.ts --no-source-maps","clean":"rimraf dist/*","prebuild":"npm run test && npm run lint && npm run clean","postbuild":"node ./scripts/post-build.js","prepublish":"npm run build","test:server":"jest --watch"},"_npmUser":{"name":"evecalm","email":"evecalm@live.cn"},"repository":{"url":"git+https://oe@github.com/oe/truncate-html.git","type":"git"},"description":"Truncate HTML and Keep Tags","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2018 Saiya\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","dependencies":{"cheerio":"^1.0.0-rc.12"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.5.0","eslint":"^8.43.0","parcel":"^2.12.0","rimraf":"^5.0.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","typescript":"^5.1.3","@types/jest":"^29.5.2","@types/node":"^20.3.1","@parcel/packager-ts":"^2.12.0","@typescript-eslint/parser":"^5.59.11","@typescript-eslint/eslint-plugin":"^5.59.11","@parcel/transformer-typescript-types":"^2.12.0"},"_npmOperationalInternal":{"tmp":"tmp/truncate-html_1.1.1_1709395614651_0.12511544736973024","host":"s3://npm-registry-packages"}},"1.1.2":{"name":"truncate-html","version":"1.1.2","keywords":["truncate html","html","truncate"],"author":{"url":"https://github.com/oe","name":"Saiya"},"license":"MIT","_id":"truncate-html@1.1.2","maintainers":[{"name":"evecalm","email":"evecalm@live.com"}],"contributors":[{"url":"https://github.com/calebeno","name":"Caleb Eno"},{"url":"https://github.com/aaditya-thakkar","name":"Aaditya Thakkar"}],"homepage":"https://github.com/oe/truncate-html#readme","bugs":{"url":"https://github.com/oe/truncate-html/issues"},"dist":{"shasum":"a599ad64b1950cd972bd4c4cb32b0a7f199ca8e0","tarball":"https://registry.npmjs.org/truncate-html/-/truncate-html-1.1.2.tgz","fileCount":8,"integrity":"sha512-BiLzO594/Quf0wu3jHnVxHA4X5tl4Gunhqe2mlGTa5ElwHJGw7M/N5JdBvU8OPtR+MaEIvmyUdNxnoEi3YI5Yg==","signatures":[{"sig":"MEUCICb6sDSWRVFZXt8NYE4ztAYuSp0paR11w3arIGNaFr1hAiEArznTBJuxetQR7jLn+vx+fdoxu2gTXl5wPjHSVmOocac=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":32322},"main":"dist/truncate.cjs.js","types":"dist/truncate.d.ts","module":"dist/truncate.es.js","source":"./src/truncate.ts","scripts":{"dev":"ts-node ./test/demo.ts","lint":"eslint src --ext .ts","test":"jest","build":"parcel build src/truncate.ts --no-source-maps","clean":"rimraf dist/*","prebuild":"npm run test && npm run lint && npm run clean","postbuild":"node ./scripts/post-build.js","prepublish":"npm run build","test:server":"jest --watch"},"_npmUser":{"name":"evecalm","email":"evecalm@live.com"},"repository":{"url":"git+https://oe@github.com/oe/truncate-html.git","type":"git"},"description":"Truncate HTML and Keep Tags","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2018 Saiya\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","dependencies":{"cheerio":"1.0.0-rc.12"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.5.0","eslint":"^8.43.0","parcel":"^2.12.0","rimraf":"^5.0.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","typescript":"^5.1.3","@types/jest":"^29.5.2","@types/node":"^20.3.1","@parcel/packager-ts":"^2.12.0","@typescript-eslint/parser":"^5.59.11","@typescript-eslint/eslint-plugin":"^5.59.11","@parcel/transformer-typescript-types":"^2.12.0"},"_npmOperationalInternal":{"tmp":"tmp/truncate-html_1.1.2_1723742351642_0.35383981371453066","host":"s3://npm-registry-packages"}},"1.2.0-beta.1":{"name":"truncate-html","version":"1.2.0-beta.1","keywords":["truncate html","html","truncate"],"author":{"url":"https://github.com/oe","name":"Saiya"},"license":"MIT","_id":"truncate-html@1.2.0-beta.1","maintainers":[{"name":"evecalm","email":"evecalm@live.com"}],"contributors":[{"url":"https://github.com/calebeno","name":"Caleb Eno"},{"url":"https://github.com/aaditya-thakkar","name":"Aaditya Thakkar"}],"homepage":"https://github.com/oe/truncate-html#readme","bugs":{"url":"https://github.com/oe/truncate-html/issues"},"dist":{"shasum":"fe6d40f5a33b2137c9b21c1c03eb5441ea15c00f","tarball":"https://registry.npmjs.org/truncate-html/-/truncate-html-1.2.0-beta.1.tgz","fileCount":8,"integrity":"sha512-4F6p3Bp8nhnJGPFqMH4sZhwh63Boa1beuxKrVILgT6xua7cTQLFqTRzlLBfIRoM0uvcy+x0grCotpk566snCBw==","signatures":[{"sig":"MEUCIQCV/W6swFDowTykl4RFFdL0bUEn9NehnGOg6MAXuUzOsQIgX9JKt3CdEZIV+3ipnDi+iHxh8y7xMoTfa9RaMPjBZ9g=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30030},"main":"dist/truncate.cjs.js","types":"dist/truncate.d.ts","module":"dist/truncate.es.js","exports":{".":{"import":"./dist/truncate.es.js","require":"./dist/truncate.cjs.js"}},"scripts":{"dev":"tsx ./test/demo.ts","lint":"eslint src","test":"vitest --coverage","build":"vite build","prepublish":"yarn test && yarn build","test:server":"vitest --watch"},"_npmUser":{"name":"evecalm","email":"evecalm@live.com"},"repository":{"url":"git+https://oe@github.com/oe/truncate-html.git","type":"git"},"description":"Truncate HTML and Keep Tags","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2018 Saiya\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","dependencies":{"cheerio":"1.0.0-rc.12"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.1","vite":"^5.4.8","eslint":"^9.12.0","vitest":"^2.1.2","@eslint/js":"^9.12.0","typescript":"^5.6.3","vite-plugin-dts":"^4.2.4","@types/eslint__js":"^8.42.3","typescript-eslint":"^8.8.1","@vitest/coverage-v8":"2.1.2"},"_npmOperationalInternal":{"tmp":"tmp/truncate-html_1.2.0-beta.1_1728748359914_0.5911589150753633","host":"s3://npm-registry-packages"}},"1.2.0":{"name":"truncate-html","version":"1.2.0","keywords":["truncate html","html","truncate"],"author":{"url":"https://github.com/oe","name":"Saiya"},"license":"MIT","_id":"truncate-html@1.2.0","maintainers":[{"name":"evecalm","email":"evecalm@live.com"}],"contributors":[{"url":"https://github.com/calebeno","name":"Caleb Eno"},{"url":"https://github.com/aaditya-thakkar","name":"Aaditya Thakkar"}],"homepage":"https://github.com/oe/truncate-html#readme","bugs":{"url":"https://github.com/oe/truncate-html/issues"},"dist":{"shasum":"ae9d9af979ac4438bf1d1c360177f5f7660d07f9","tarball":"https://registry.npmjs.org/truncate-html/-/truncate-html-1.2.0.tgz","fileCount":8,"integrity":"sha512-KURu/TjWR7OBK1b39PX5OqBw/fnk+1idbizEGny/xrdptUxbW3XN4WD/FU4AeOEWYMLnZNEza/ldDLYkVf8isg==","signatures":[{"sig":"MEUCID3cSM9iWUbY3cJTOKS8pm1on0F+MlHWf3OuOnElvZHkAiEAhW6Z5O19kSvMHUgeuwszK7ukfseLtClYeS4D3L8Nu38=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30209},"main":"dist/truncate.cjs.js","types":"dist/truncate.d.ts","module":"dist/truncate.es.js","scripts":{"dev":"tsx ./test/demo.ts","lint":"eslint src","test":"vitest --coverage","build":"vite build","prepublish":"yarn test && yarn build","test:server":"vitest --watch"},"_npmUser":{"name":"evecalm","email":"evecalm@live.com"},"repository":{"url":"git+https://oe@github.com/oe/truncate-html.git","type":"git"},"description":"Truncate HTML and Keep Tags","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2018 Saiya\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","dependencies":{"cheerio":"1.0.0-rc.12"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.1","vite":"^5.4.8","eslint":"^9.12.0","vitest":"^2.1.2","@eslint/js":"^9.12.0","typescript":"^5.6.3","vite-plugin-dts":"^4.2.4","@types/eslint__js":"^8.42.3","typescript-eslint":"^8.8.1","@vitest/coverage-v8":"2.1.2"},"_npmOperationalInternal":{"tmp":"tmp/truncate-html_1.2.0_1737386666306_0.6188268499043654","host":"s3://npm-registry-packages-npm-production"}},"1.2.1":{"name":"truncate-html","version":"1.2.1","keywords":["truncate html","html","truncate"],"author":{"url":"https://github.com/oe","name":"Saiya"},"license":"MIT","_id":"truncate-html@1.2.1","maintainers":[{"name":"evecalm","email":"evecalm@live.com"}],"contributors":[{"url":"https://github.com/calebeno","name":"Caleb Eno"},{"url":"https://github.com/aaditya-thakkar","name":"Aaditya Thakkar"}],"homepage":"https://github.com/oe/truncate-html#readme","bugs":{"url":"https://github.com/oe/truncate-html/issues"},"dist":{"shasum":"83db4daafbcc8e92765b7282143605889fd0d951","tarball":"https://registry.npmjs.org/truncate-html/-/truncate-html-1.2.1.tgz","fileCount":8,"integrity":"sha512-/e2PdCNTVLUR4F+tf6Qw+tPlV/tY5xUWBkfVS9syRHAk6pSJP6ZpqmV+8Q11FAkraoTko6MzwuKK3nWAhSmyuQ==","signatures":[{"sig":"MEYCIQDCJeAEKUL4trZQ5Tdw8pWH1WWTWLdJenoxyc3KOThI2QIhAM/T8I9Wg5LqlYrlbbCMRO3LtYyH3nrdSZ+QDTW9ZWZu","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":30293},"main":"dist/truncate.cjs.js","types":"dist/truncate.d.ts","module":"dist/truncate.es.js","scripts":{"dev":"tsx ./test/demo.ts","lint":"eslint src","test":"vitest --coverage","build":"vite build","prepublish":"yarn test && yarn build","test:server":"vitest --watch"},"_npmUser":{"name":"evecalm","email":"evecalm@live.com"},"repository":{"url":"git+https://oe@github.com/oe/truncate-html.git","type":"git"},"description":"Truncate HTML and Keep Tags","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2018 Saiya\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","dependencies":{"cheerio":"1.0.0-rc.12"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.1","vite":"^5.4.8","eslint":"^9.12.0","vitest":"^2.1.2","@eslint/js":"^9.12.0","typescript":"^5.6.3","vite-plugin-dts":"^4.2.4","@types/eslint__js":"^8.42.3","typescript-eslint":"^8.8.1","@vitest/coverage-v8":"2.1.2"},"_npmOperationalInternal":{"tmp":"tmp/truncate-html_1.2.1_1742310119720_0.8942626874143869","host":"s3://npm-registry-packages-npm-production"}},"1.2.2":{"name":"truncate-html","version":"1.2.2","description":"Truncate HTML and Keep Tags","main":"dist/truncate.cjs.js","module":"dist/truncate.es.js","types":"dist/truncate.d.ts","scripts":{"dev":"tsx ./test/demo.ts","build":"vite build","prepublish":"yarn test && yarn build","test":"vitest --coverage","test:server":"vitest --watch","lint":"eslint src"},"dependencies":{"cheerio":"1.0.0-rc.12"},"devDependencies":{"@eslint/js":"^9.12.0","@types/eslint__js":"^8.42.3","@vitest/coverage-v8":"2.1.2","eslint":"^9.12.0","tsx":"^4.19.1","typescript":"^5.6.3","typescript-eslint":"^8.8.1","vite":"^5.4.8","vite-plugin-dts":"^4.2.4","vitest":"^2.1.2"},"repository":{"type":"git","url":"git+https://oe@github.com/oe/truncate-html.git"},"keywords":["truncate html","html","truncate"],"author":{"name":"Saiya","url":"https://github.com/oe"},"contributors":[{"name":"Caleb Eno","url":"https://github.com/calebeno"},{"name":"Aaditya Thakkar","url":"https://github.com/aaditya-thakkar"}],"license":"MIT","bugs":{"url":"https://github.com/oe/truncate-html/issues"},"homepage":"https://github.com/oe/truncate-html#readme","licenseText":"MIT License\n\nCopyright (c) 2018 Saiya\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"truncate-html@1.2.2","dist":{"shasum":"8584347f74cf46d5192a3f8948d0b4acdd28b647","integrity":"sha512-0pogasqkxhCj8PWqxLPTYqtC66ruVXzOS6uNcOCI7yxS1Bf2HMqeXUty5mlbv0UjjlCuExBpPN4vEAFV6imsug==","tarball":"https://registry.npmjs.org/truncate-html/-/truncate-html-1.2.2.tgz","fileCount":8,"unpackedSize":30329,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIH0hJGO5BVUkT+njH61UjSvq43BUmddXLnFzzsJp4J1EAiEA12c4s1B2ZPR8NX5rKDlZbm7cYMpog6oJQUeOCOTFTlw="}]},"_npmUser":{"name":"evecalm","email":"evecalm@live.com"},"directories":{},"maintainers":[{"name":"evecalm","email":"evecalm@live.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/truncate-html_1.2.2_1749881485662_0.3125355423689673"},"_hasShrinkwrap":false}},"time":{"created":"2015-11-25T09:55:52.116Z","modified":"2025-06-14T06:11:26.065Z","0.0.1":"2015-11-25T09:55:52.116Z","0.0.2":"2015-11-25T10:03:05.693Z","0.0.3":"2015-11-25T10:03:58.345Z","0.0.4":"2015-11-25T10:06:51.037Z","0.0.5":"2015-11-26T02:34:29.039Z","0.0.6":"2015-11-26T07:50:22.187Z","0.1.0":"2016-07-21T08:13:30.263Z","0.1.1":"2016-07-26T03:15:28.124Z","0.1.2":"2016-12-06T07:39:53.162Z","0.1.4":"2017-03-03T15:11:41.391Z","1.0.0-rc.1":"2018-02-03T09:06:22.345Z","1.0.0-rc.2":"2018-02-03T09:16:07.953Z","1.0.0-rc.3":"2018-02-03T09:18:23.337Z","1.0.0-rc.4":"2018-02-03T16:25:16.068Z","1.0.0-rc.5":"2018-02-23T06:20:33.202Z","1.0.0-rc.6":"2018-03-08T07:18:05.663Z","1.0.0":"2018-03-18T15:38:49.080Z","1.0.1-rc.1":"2018-08-16T14:14:52.846Z","1.0.1":"2018-08-30T07:48:14.130Z","1.0.2":"2019-04-13T10:19:18.141Z","1.0.3":"2019-08-14T11:21:40.901Z","1.0.4":"2021-07-09T05:12:57.401Z","1.0.5-beta.1":"2023-06-17T10:04:47.735Z","1.0.5-beta.2":"2023-06-17T12:29:41.647Z","1.1.0":"2024-03-02T15:04:32.192Z","1.1.1":"2024-03-02T16:06:54.829Z","1.1.2":"2024-08-15T17:19:11.844Z","1.2.0-beta.1":"2024-10-12T15:52:40.075Z","1.2.0":"2025-01-20T15:24:26.465Z","1.2.1":"2025-03-18T15:01:59.903Z","1.2.2":"2025-06-14T06:11:25.863Z"},"bugs":{"url":"https://github.com/oe/truncate-html/issues"},"author":{"name":"Saiya","url":"https://github.com/oe"},"license":"MIT","homepage":"https://github.com/oe/truncate-html#readme","keywords":["truncate html","html","truncate"],"repository":{"type":"git","url":"git+https://oe@github.com/oe/truncate-html.git"},"description":"Truncate HTML and Keep Tags","contributors":[{"name":"Caleb Eno","url":"https://github.com/calebeno"},{"name":"Aaditya Thakkar","url":"https://github.com/aaditya-thakkar"}],"maintainers":[{"name":"evecalm","email":"evecalm@live.com"}],"readme":"<h1 align=\"center\">truncate-html</h1>\n\n<h5 align=\"center\"> Truncate html string(even contains emoji chars) and keep tags in safe. You can custom ellipsis sign, ignore unwanted elements and truncate html by words. </h5>\n<div align=\"center\">\n  <a href=\"https://github.com/oe/truncate-html/actions/workflows/main.yml\">\n    <img src=\"https://github.com/oe/truncate-html/actions/workflows/main.yml/badge.svg\" alt=\"Github Actions\">\n  </a>\n  <a href=\"#readme\">\n    <img src=\"https://img.shields.io/badge/%3C%2F%3E-typescript-blue\" alt=\"code with typescript\">\n  </a>\n  <a href=\"#readme\">\n    <img src=\"https://badge.fury.io/js/truncate-html.svg\" alt=\"npm version\">\n  </a>\n  <a href=\"https://www.npmjs.com/package/truncate-html\">\n    <img src=\"https://img.shields.io/npm/dm/truncate-html.svg\" alt=\"npm downloads\">\n  </a>\n  <a href=\"https://codecov.io/gh/oe/truncate-html\">\n    <img src=\"https://codecov.io/gh/oe/truncate-html/branch/main/graph/badge.svg\" alt=\"Coverage Status\">\n  </a>\n</div>\n\n<br>\n\n**Notice** This is a node module depends on [cheerio](https://github.com/cheeriojs/cheerio) _can only run on nodejs_. If you need a browser version, you may consider [truncate](https://github.com/pathable/truncate) or [nodejs-html-truncate](https://github.com/huang47/nodejs-html-truncate).\n\n```javascript\nconst truncate = require('truncate-html')\ntruncate('<p><img src=\"xxx.jpg\">Hello from earth!</p>', 2, { byWords: true })\n// => <p><img src=\"xxx.jpg\">Hello from ...</p>\n```\n\n## Installation\n\n`npm install truncate-html` <br>\nor <br>\n`yarn add truncate-html`\n\n## Try it online\n\nClick **<https://npm.runkit.com/truncate-html>** to try.\n\n## API\n\n```ts\n/**\n * custom node strategy, default to Cheerio<AnyNode>\n * * 'remove' to remove the node\n * * 'keep' to keep the node(and anything inside it) anyway, and won't be counted as there is no text content in it\n * * Cheerio<AnyNode> truncate the returned node\n * * undefined or any falsy value to truncate original node\n */\ntype ICustomNodeStrategy = (node: Cheerio<AnyNode>) => 'remove' | 'keep' | Cheerio<AnyNode> | undefined\n\n/**\n * truncate-html full options object\n */\ninterface IFullOptions {\n  /**\n   * remove all tags, default false\n   */\n  stripTags: boolean\n  /**\n   * ellipsis sign, default '...'\n   */\n  ellipsis: string\n  /**\n   * decode html entities(e.g. convert `&amp;` to `&`) before counting length, default false\n   */\n  decodeEntities: boolean\n  /**\n   * elements' selector you want ignore\n   */\n  excludes: string | string[]\n  /**\n   * custom node strategy, default to Cheerio<AnyNode>\n   * * 'remove' to remove the node\n   * * 'keep' to keep the node(and anything inside it) anyway, and won't be counted as there is no text content in it\n   * * Cheerio<AnyNode> truncate the returned node\n   * * undefined or any falsy value to truncate original node\n   */\n  customNodeStrategy: ICustomNodeStrategy\n  /**\n   * how many letters(words if `byWords` is true) you want reserve\n   */\n  length: number\n  /**\n   * if true, length means how many words to reserve\n   */\n  byWords: boolean\n  /**\n   * how to deal with when truncate in the middle of a word\n   *  1. by default, just cut at that position.\n   *  2. set it to true, with max exceed 10 letters can exceed to reserver the last word\n   *  3. set it to a positive number decide how many letters can exceed to reserve the last word\n   *  4. set it to negative number to remove the last word if cut in the middle.\n   */\n  reserveLastWord: boolean | number\n  /**\n   * if reserveLastWord set to negative number, and there is only one word in the html string,  when trimTheOnlyWord set to true, the extra letters will be sliced if word's length longer than `length`.\n   * see issue #23 for more details\n   */\n  trimTheOnlyWord: boolean\n  /**\n   * keep whitespaces, by default continuous paces will\n   *  be replaced with one space, set it true to keep them\n   */\n  keepWhitespaces: boolean\n}\n\n/**\n * options interface for function\n */\ntype IOptions = Partial<IFullOptions>\n\nfunction truncate(html: string | CheerioAPI, length?: number | IOptions,  truncateOptions?: IOptions): string\n// and truncate.setup to change default options\ntruncate.setup(options: IOptions): void\n```\n\n### Default options\n\n```js\n{\n  stripTags: false,\n  ellipsis: '...',\n  decodeEntities: false,\n  excludes: '',\n  byWords: false,\n  reserveLastWord: false,\n  trimTheOnlyWord: false,\n  keepWhitespaces: false\n}\n```\n\nYou can change default options by using `truncate.setup`\n\ne.g.\n\n```ts\ntruncate.setup({ stripTags: true, length: 10 })\ntruncate('<p><img src=\"xxx.jpg\">Hello from earth!</p>')\n// => Hello from\n```\n\nor use existing [cheerio instance](https://github.com/cheeriojs/cheerio#loading)\n\n```ts\nimport * as cheerio from 'cheerio'\ntruncate.setup({ stripTags: true, length: 10 })\n// truncate option `decodeEntities` will not work\n//    you should config it in cheerio options by yourself\nconst $ = cheerio.load('<p><img src=\"xxx.jpg\">Hello from earth!</p>', {\n  /** set decodeEntities if you need it */\n  decodeEntities: true\n  /* any cheerio instance options*/\n}, false) // third parameter is for `isDocument` option, set to false to get rid of extra wrappers, see cheerio's doc for details\ntruncate($)\n// => Hello from\n```\n\n\n## Notice\n\n### Typescript support\n\nThis lib is written with typescript and has a type definition file along with it. ~~You may need to update your `tsconfig.json` by adding `\"esModuleInterop\": true` to the `compilerOptions` if you encounter some typing errors, see [#19](https://github.com/oe/truncate-html/issues/19).~~\n\n```ts\nimport truncate, { type IOptions } from 'truncate-html'\n\n\nconst html = '<p><img src=\"abc.png\"><i>italic<b>bold</b></i>This is a string</p> for test.'\n\nconst options: IOptions = {\n  length: 10,\n  byWords: true\n}\n\ntruncate(html, options)\n// => <p><img src=\"abc.png\"><i>italic<b>bold...</b></i></p>\n```\n\n### custom node truncate strategy\nIn complex html string, you may want to keep some special elements and truncate the others. You can use `customNodeStrategy` to achieve this:\n* return `'remove'` to remove the node\n* `keep` to keep the node(and anything inside it) anyway, and won't be counted as there is no text content in it\n* `Cheerio<AnyNode>` to truncate the returned node, or any falsy value to truncate the original node.\n\n```ts\nimport truncate, { type IOptions, type ICustomNodeStrategy } from 'truncate-html'\n\n// argument node is a cheerio instance\nconst customNodeStrategy: ICustomNodeStrategy = node => {\n  // remove img tag\n  if (node.is('img')) {\n    return 'remove'\n  }\n  // keep italic tag and its children\n  if (node.is('i')) {\n    return 'keep'\n  }\n  // truncate summary tag that inside details tag instead of details tag\n  if (node.is('details')) {\n    return node.find('summary')\n  }\n}\n\nconst html = '<div><img src=\"abc.png\"><i>italic<b>bold</b></i><details><summary>Click me</summary><p>Some details</p></details>This is a string</div> for test.'\n\nconst options: IOptions = {\n  length: 10,\n  customNodeStrategy\n}\n\ntruncate(html, options)\n// => <div><i>italic<b>bold</b></i><details><summary>Click me</summary><p>Some details</p></details>Th...</div>\n\n\n```\n\n### About final string length\n\nIf the html string content's length is shorter than `options.length`, then no ellipsis will be appended to the final html string. If longer, then the final string length will be `options.length` + `options.ellipsis`. And if you set `reserveLastWord` to true or none zero number or using `customNodeStrategy`, the final string will be various.\n\n### About html comments\n\nAll html comments `<!-- xxx -->` will be removed\n\n### About dealing with none alphabetic languages\n\nWhen dealing with none alphabetic languages, such as Chinese/Japanese/Korean, they don't separate words with whitespaces, so options `byWords` and `reserveLastWord` should only works well with alphabetic languages.\n\nAnd the only dependency of this project `cheerio` has an issue when dealing with none alphabetic languages, see [Known Issues](#known-issues) for details.\n\n### Using existing cheerio instance\n\nIf you want to use existing cheerio instance, truncate option `decodeEntities` will not work, you should set it in your own cheerio instance:\n\n```js\nvar html = '<p><img src=\"abc.png\">This is a string</p> for test.'\nconst $ = cheerio.load(`${html}`, {\n  decodeEntities: true\n  /** other cheerio options */\n}, false) // third parameter is for `isDocument` option, set to false to get rid of extra wrappers, see cheerio's doc for details\ntruncate($, 10)\n\n```\n\n## Examples\n\n```javascript\nvar truncate = require('truncate-html')\n\n// truncate html\nvar html = '<p><img src=\"abc.png\">This is a string</p> for test.'\ntruncate(html, 10)\n// returns: <p><img src=\"abc.png\">This is a ...</p>\n\n// truncate string with emojis\nvar string = '<p>poo 💩💩💩💩💩<p>'\ntruncate(string, 6)\n// returns: <p>poo 💩💩...</p>\n\n// with options, remove all tags\nvar html = '<p><img src=\"abc.png\">This is a string</p> for test.'\ntruncate(html, 10, { stripTags: true })\n// returns: This is a ...\n\n// with options, truncate by words.\n//  if you try to truncate none alphabet language(like CJK)\n//      it will not act as you wish\nvar html = '<p><img src=\"abc.png\">This is a string</p> for test.'\ntruncate(html, 3, { byWords: true })\n// returns: <p><img src=\"abc.png\">This is a ...</p>\n\n// with options, keep whitespaces\nvar html = '<p>         <img src=\"abc.png\">This is a string</p> for test.'\ntruncate(html, 10, { keepWhitespaces: true })\n// returns: <p>         <img src=\"abc.png\">This is a ...</p>\n\n// combine length and options\nvar html = '<p><img src=\"abc.png\">This is a string</p> for test.'\ntruncate(html, {\n  length: 10,\n  stripTags: true\n})\n// returns: This is a ...\n\n// custom ellipsis sign\nvar html = '<p><img src=\"abc.png\">This is a string</p> for test.'\ntruncate(html, {\n  length: 10,\n  ellipsis: '~'\n})\n// returns: <p><img src=\"abc.png\">This is a ~</p>\n\n// exclude some special elements(by selector), they will be removed before counting content's length\nvar html = '<p><img src=\"abc.png\">This is a string</p> for test.'\ntruncate(html, {\n  length: 10,\n  ellipsis: '~',\n  excludes: 'img'\n})\n// returns: <p>This is a ~</p>\n\n// exclude more than one category elements\nvar html =\n  '<p><img src=\"abc.png\">This is a string</p><div class=\"something-unwanted\"> unwanted string inserted ( ´•̥̥̥ω•̥̥̥` ）</div> for test.'\ntruncate(html, {\n  length: 20,\n  stripTags: true,\n  ellipsis: '~',\n  excludes: ['img', '.something-unwanted']\n})\n// returns: This is a string for~\n\n// handing encoded characters\nvar html = '<p>&nbsp;test for &lt;p&gt; encoded string</p>'\ntruncate(html, {\n  length: 20,\n  decodeEntities: true\n})\n// returns: <p> test for &lt;p&gt; encode...</p>\n\n// when set decodeEntities false\nvar html = '<p>&nbsp;test for &lt;p&gt; encoded string</p>'\ntruncate(html, {\n  length: 20,\n  decodeEntities: false // this is the default value\n})\n// returns: <p>&nbsp;test for &lt;p...</p>\n\n// and there may be a surprise by setting `decodeEntities` to true  when handing CJK characters\nvar html = '<p>&nbsp;test for &lt;p&gt; 中文 string</p>'\ntruncate(html, {\n  length: 20,\n  decodeEntities: true\n})\n// returns: <p> test for &lt;p&gt; &#x4E2D;&#x6587; str...</p>\n// to fix this, see below for instructions\n\n\n// custom node strategy to keep some special elements\nvar html = '<p><img src=\"abc.png\"><i>italic<b>bold</b></i>This is a string</p> for test.'\ntruncate(html, {\n  length: 10,\n  customNodeStrategy: node => {\n    if (node.is('img')) {\n      return 'remove'\n    }\n    if (node.is('i')) {\n      return 'keep'\n    }\n  }\n})\n// returns: <p><i>italic<b>bold</b></i>This is a ...</p>\n\n// custom node strategy to truncate summary instead of original node\nvar html = '<div><details><summary>Click me</summary><p>Some details</p></details>other things</div>'\ntruncate(html, {\n  length: 10,\n  customNodeStrategy: node => {\n    if (node.is('details')) {\n      return node.find('summary')\n    }\n  }\n})\n// returns: <div><details><summary>Click me</summary><p>Some details</p></details>ot...</div>\n```\n\nfor More usages, check [truncate.spec.ts](./test/truncate.spec.ts)\n\n## Credits\n\nThanks to:\n\n- [@calebeno](https://github.com/calebeno) es6 support and unit tests\n- [@aaditya-thakkar](https://github.com/aaditya-thakkar) emoji truncating support\n","readmeFilename":"readme.md"}