{"_id":"truncatise","_rev":"14-ad457fa07255e6c94a588c4daf642d92","name":"truncatise","description":"Truncate HTML based on characters, words or paragraphs. Has the ability to strip tags.","dist-tags":{"latest":"0.0.8"},"versions":{"0.0.1":{"name":"truncatise","version":"0.0.1","description":"Truncate HTML based on characters, words or paragraphs. Has the ability to strip tags.","main":"index.js","scripts":{"test":"mocha -R spec test.js"},"repository":{"type":"git","url":"git://github.com/AverageMarcus/Truncatise"},"keywords":["text","truncate","truncatise","word","character","limit","html","tag","strip","paragraph","excerpt"],"author":{"name":"Marcus Noble"},"license":"MIT","devDependencies":{"chai":"~1.5.0","mocha":"~1.9.0"},"bugs":{"url":"https://github.com/AverageMarcus/Truncatise/issues"},"_id":"truncatise@0.0.1","dist":{"shasum":"a25a6748fc73b47c90fdbe612d3a5366173e6590","tarball":"https://registry.npmjs.org/truncatise/-/truncatise-0.0.1.tgz","integrity":"sha512-219LU2mO4tyqFbOOy8UpsZhMrwWHE4GJSXo5nobE+pnrZ/o0HQ82fxnmKmTQM8A5FlJnKf4hQFm78b/9RXQfuw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIANH/DM3GjhKTRt4CO/uxW0uxjOJDoaG41ykvDi5kdwkAiEA08r8TTafWS9evG4rgivMJYvDJ67cFUggpVLjsDFwq4U="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"averagemarcus","email":"marcus@marcusnoble.co.uk"},"maintainers":[{"name":"averagemarcus","email":"marcus@marcusnoble.co.uk"}],"directories":{}},"0.0.2":{"name":"truncatise","version":"0.0.2","description":"Truncate HTML based on characters, words or paragraphs. Has the ability to strip tags.","main":"index.js","scripts":{"test":"mocha -R spec test.js"},"repository":{"type":"git","url":"git://github.com/AverageMarcus/Truncatise"},"keywords":["text","truncate","truncatise","word","character","limit","html","tag","strip","paragraph","excerpt"],"author":{"name":"Marcus Noble"},"license":"MIT","devDependencies":{"chai":"~1.5.0","mocha":"~1.9.0"},"bugs":{"url":"https://github.com/AverageMarcus/Truncatise/issues"},"_id":"truncatise@0.0.2","dist":{"shasum":"7a13a8ba4ee1bb14174fa340d4fa20b4f9a41a8b","tarball":"https://registry.npmjs.org/truncatise/-/truncatise-0.0.2.tgz","integrity":"sha512-yLuHcSJ6oYXP8XzmpEZtSXyD3Ys5gRebBJnSP7LvPN5CBK5PPs+MAmGtk0km+5m8nq+AxR/lQxHVR53DXrad7Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDXXMySwrzk5SE4/SsRX0Nvqfcc5CSTjL039Jr91ZKe6AIgAWhIYo8QuEq+D8rh0ElZKIARaemv5xrCkhR3WdM/LP4="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"averagemarcus","email":"marcus@marcusnoble.co.uk"},"maintainers":[{"name":"averagemarcus","email":"marcus@marcusnoble.co.uk"}],"directories":{}},"0.0.3":{"name":"truncatise","version":"0.0.3","description":"Truncate HTML based on characters, words or paragraphs. Has the ability to strip tags.","main":"index.js","scripts":{"test":"mocha -R spec test.js"},"repository":{"type":"git","url":"git://github.com/AverageMarcus/Truncatise.git"},"keywords":["text","truncate","truncatise","word","character","limit","html","tag","strip","paragraph","excerpt"],"author":{"name":"Marcus Noble"},"license":"MIT","devDependencies":{"chai":"~1.5.0","mocha":"~1.9.0"},"bugs":{"url":"https://github.com/AverageMarcus/Truncatise/issues"},"gitHead":"38a5efb43b2edc62f7319b164286aacf64e57eca","homepage":"https://github.com/AverageMarcus/Truncatise#readme","_id":"truncatise@0.0.3","_shasum":"ce7fa2c70200d9d4bd9cd848a23d000b8b46a6b5","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.6.0","_npmUser":{"name":"averagemarcus","email":"marcus@marcusnoble.co.uk"},"dist":{"shasum":"ce7fa2c70200d9d4bd9cd848a23d000b8b46a6b5","tarball":"https://registry.npmjs.org/truncatise/-/truncatise-0.0.3.tgz","integrity":"sha512-ZURQlidzTrbb6QS/Z2OxUoAkXm4OtMXu9zjBF75DWnWYXPzTMgRdipqwLCdmuyk1FKSPEDlVThFVXxS1Wb821Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDt8047xWP/db6fb5IFBxq9gVm2iRQ9dYRlu5T3yeMEEAiAaKaZRIpxCvvu09xhrz9R2skFwK9xg4kjg4ccB1tuzZQ=="}]},"maintainers":[{"name":"averagemarcus","email":"marcus@marcusnoble.co.uk"}],"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/truncatise-0.0.3.tgz_1458309527778_0.12842665007337928"},"directories":{}},"0.0.4":{"name":"truncatise","version":"0.0.4","description":"Truncate HTML based on characters, words or paragraphs. Has the ability to strip tags.","main":"index.js","scripts":{"test":"mocha -R spec test.js"},"repository":{"type":"git","url":"git://github.com/AverageMarcus/Truncatise.git"},"keywords":["text","truncate","truncatise","word","character","limit","html","tag","strip","paragraph","excerpt"],"author":{"name":"Marcus Noble"},"license":"MIT","devDependencies":{"chai":"~1.5.0","mocha":"~1.9.0"},"bugs":{"url":"https://github.com/AverageMarcus/Truncatise/issues"},"gitHead":"2fd9a2914c0c7febf932fa8549ce9dadec3c6d18","homepage":"https://github.com/AverageMarcus/Truncatise#readme","_id":"truncatise@0.0.4","_shasum":"6cdc821ece7e40ed8a1d0ca6eee19066be01ad02","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.6.0","_npmUser":{"name":"averagemarcus","email":"marcus@marcusnoble.co.uk"},"dist":{"shasum":"6cdc821ece7e40ed8a1d0ca6eee19066be01ad02","tarball":"https://registry.npmjs.org/truncatise/-/truncatise-0.0.4.tgz","integrity":"sha512-EY+FICrHr8aIv7zyuu7HNie1hdtlbcYu1xtOHOp8hL0peK+2WH+QjZNNDS++9ZqfPByyG6Up/jllawbS+LDyCw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDcCIX8Nusnpwl0P2yj+7y+D1sTsZv3lciwT+KQzTCLzwIhAIL/c7HFVgiRelGs5wHvpDK1vnYzbnGsu+GUs36RI3Rs"}]},"maintainers":[{"name":"averagemarcus","email":"marcus@marcusnoble.co.uk"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/truncatise-0.0.4.tgz_1458310399021_0.7423105491325259"},"directories":{}},"0.0.5":{"name":"truncatise","version":"0.0.5","description":"Truncate HTML based on characters, words or paragraphs. Has the ability to strip tags.","main":"index.js","scripts":{"test":"mocha -R spec test.js"},"repository":{"type":"git","url":"git://github.com/AverageMarcus/Truncatise.git"},"keywords":["text","truncate","truncatise","word","character","limit","html","tag","strip","paragraph","excerpt"],"author":{"name":"Marcus Noble"},"license":"MIT","devDependencies":{"chai":"~1.5.0","mocha":"~1.9.0"},"bugs":{"url":"https://github.com/AverageMarcus/Truncatise/issues"},"gitHead":"2208e351923750ebf30872e27a49d4d2a0d49d6c","homepage":"https://github.com/AverageMarcus/Truncatise#readme","_id":"truncatise@0.0.5","_shasum":"999bb2a9776febc686f332b7679b9c066491efcf","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.6.0","_npmUser":{"name":"averagemarcus","email":"marcus@marcusnoble.co.uk"},"dist":{"shasum":"999bb2a9776febc686f332b7679b9c066491efcf","tarball":"https://registry.npmjs.org/truncatise/-/truncatise-0.0.5.tgz","integrity":"sha512-behVs35JiTBd0Evelt3xI6bb5BbmcHbpeeHMa2tCiosuXhctL69XqFS9wCxCy4xWkobzH/L5SavP7BJP0Hf69g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDuVrYeAr7TS0JppOYFuMRp/gMdf1S9opSsdi71zfLAEwIhAIeMO13h4aCGlLSyseuQ3meZV27C65BZtpHeRj/MkxDU"}]},"maintainers":[{"name":"averagemarcus","email":"marcus@marcusnoble.co.uk"}],"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/truncatise-0.0.5.tgz_1458663074545_0.04700639424845576"},"directories":{}},"0.0.6":{"name":"truncatise","version":"0.0.6","description":"Truncate HTML based on characters, words or paragraphs. Has the ability to strip tags.","main":"index.js","scripts":{"test":"mocha -R spec test.js"},"repository":{"type":"git","url":"git://github.com/AverageMarcus/Truncatise.git"},"keywords":["text","truncate","truncatise","word","character","limit","html","tag","strip","paragraph","excerpt"],"author":{"name":"Marcus Noble"},"license":"MIT","devDependencies":{"chai":"~1.5.0","mocha":"~1.9.0"},"bugs":{"url":"https://github.com/AverageMarcus/Truncatise/issues"},"gitHead":"8a4ca018ecd4f2f678319b0a284b0d18c7513e27","homepage":"https://github.com/AverageMarcus/Truncatise#readme","_id":"truncatise@0.0.6","_shasum":"d543c1b16179a65c5656a9376ee7419a935cde3f","_from":".","_npmVersion":"2.15.1","_nodeVersion":"4.4.3","_npmUser":{"name":"averagemarcus","email":"marcus@marcusnoble.co.uk"},"dist":{"shasum":"d543c1b16179a65c5656a9376ee7419a935cde3f","tarball":"https://registry.npmjs.org/truncatise/-/truncatise-0.0.6.tgz","integrity":"sha512-b3TyORfNmAt5fdAQfrhxGV1QyWMtAN7ovnIeCyW8q8a3njfnIpWfF0xFlMMLMRn4/z6qOjtKj9NpWY/AVXZfhg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCSs2QbbGfdwfgcz30gjwAGSn8WjQF+9PpKqrbfA7hFWgIgWK0xKTQGOqsthPgTifKp9hFwGQ2BU8Rqwzs3vLR9TM4="}]},"maintainers":[{"name":"averagemarcus","email":"marcus@marcusnoble.co.uk"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/truncatise-0.0.6.tgz_1487686543643_0.27811976498924196"},"directories":{}},"0.0.7":{"name":"truncatise","version":"0.0.7","description":"Truncate HTML based on characters, words or paragraphs. Has the ability to strip tags.","main":"index.js","scripts":{"test":"mocha -R spec test.js"},"repository":{"type":"git","url":"git://github.com/AverageMarcus/Truncatise.git"},"keywords":["text","truncate","truncatise","word","character","limit","html","tag","strip","paragraph","excerpt"],"author":{"name":"Marcus Noble"},"license":"MIT","devDependencies":{"chai":"~1.5.0","mocha":"~1.9.0"},"bugs":{"url":"https://github.com/AverageMarcus/Truncatise/issues"},"gitHead":"8b52ecb532c2874ce6692d1da85610aa44e1f4ec","homepage":"https://github.com/AverageMarcus/Truncatise#readme","_id":"truncatise@0.0.7","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"averagemarcus","email":"marcus@marcusnoble.co.uk"},"dist":{"integrity":"sha512-d3Bkidq0A4udAYYOvTJzvUJdwOf9DqoHCDIaciO4Lr0eaLF4YjNp9qXAXlOzXEAqqnZDZ27LXZbU8hwLT3GtOw==","shasum":"3bd318341f1e5706dd50f0ed2d6205c3c83dbd54","tarball":"https://registry.npmjs.org/truncatise/-/truncatise-0.0.7.tgz","fileCount":6,"unpackedSize":23715,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa4V10CRA9TVsSAnZWagAAH4sP/Rykr/sGYcmCb1yQH3yB\n3OdMDhMqYzJFKVmQ1BiJaYyNWn3pgGMIKCeG886TIaV9rVSjEskJrwxwSbbU\nJ2Urs6HPQ1NMjMQKWp0BUSl3pAgK9/ax2NpdsfyR/vwskOf/p7AZSVTCA8gg\nrwVyMS6MSj0MMs13gkMtYuNnTWTlbeRX9oulJrsS4V4gCai512Zl9opuZMcS\nOegNm/znTDtyDjLGBkylN6SHLVowm2rTodrTGgWxrmCyv5Y5MuhdWlBqWuNh\nl7mAoGq/1yYrINHxMW2UzWHfioBfHQCw+xjp4PmLGVKBbCsqXEwHbvTHiiQr\n+cbPuukk59NKZFY/m2r7/jAb2uBmYWvMyxi/u8YIe7UebGMMW92okH6+5mi8\nrmcgYWQVBuQ/b6DTAWOT8iBYyg9kttIEB5l29iQ0PHcFSfuGSTBveJTbdWLi\ny9D3vmI++tJa3mYO5JYKUWL/u78fiMw/ICFb96fzPTtezIDAVslQwDkj9AC+\n1obzFkp0AjYoHL4GZoAWWNigA/ULEQTONWtB78K801aKiQA+uJBq3CRlChtJ\npeeP3bvuMot1W8NNtKsOI4mktRW4ijwT/qXeX8D73N594j2kp0G12XZmzlOQ\nEVptKZcwX4eeOu8e55T9qVq1JSOdhWAUFeQUiAUAPyHdL7U7txw8tqROhOuI\n/MNI\r\n=6A7F\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAG7kagXctRd8mmDsztq+EAqRF21QEeVOjdDQqFUUVeIAiAcGgZ/UzG0fez7yA92LyKBxHXXGrzKYNnRn1h2G8ujOw=="}]},"maintainers":[{"name":"averagemarcus","email":"marcus@marcusnoble.co.uk"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/truncatise_0.0.7_1524718963073_0.4717705548668132"},"_hasShrinkwrap":false},"0.0.8":{"name":"truncatise","version":"0.0.8","description":"Truncate HTML based on characters, words or paragraphs. Has the ability to strip tags.","main":"index.js","scripts":{"test":"mocha -R spec test.js"},"repository":{"type":"git","url":"git://github.com/AverageMarcus/Truncatise.git"},"keywords":["text","truncate","truncatise","word","character","limit","html","tag","strip","paragraph","excerpt"],"author":{"name":"Marcus Noble"},"license":"MIT","devDependencies":{"chai":"~1.5.0","mocha":"~1.9.0"},"bugs":{"url":"https://github.com/AverageMarcus/Truncatise/issues"},"gitHead":"3e2568bab188a5201c8edc96c29450ee81c7f2d6","homepage":"https://github.com/AverageMarcus/Truncatise#readme","_id":"truncatise@0.0.8","_npmVersion":"6.4.1","_nodeVersion":"10.14.2","_npmUser":{"name":"averagemarcus","email":"marcus@marcusnoble.co.uk"},"dist":{"integrity":"sha512-cXzueh9pzBCsLzhToB4X4gZCb3KYkrsAcBAX97JnazE74HOl3cpBJYEV7nabHeG/6/WXCU5Yujlde/WPBUwnsg==","shasum":"06514a0e98c57924f0c2d4ebaf7ff7a5f16ef39a","tarball":"https://registry.npmjs.org/truncatise/-/truncatise-0.0.8.tgz","fileCount":6,"unpackedSize":24185,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdAUjnCRA9TVsSAnZWagAAdLAP/j1YdFuQsg0JVud7G9yn\ndlpMJVCKAicTXTuaEfdyzvyZuzE7s6x6AIKDxfHdXKIg8Il4kegUQEgFmT9h\nWTGaR0dgAEcy6xQKXar6LRYJa74to3sXT0af7Seb3mBXvXLWEg7VOSRsFypU\nffXXCF2tNOkIeWYHwUKbiNPbmK62lT+aYsRjyrzBtE0x5l9uDpyBewrO8kWL\nzkroXdDora2qHgfMd2gYMLVqDunrdYpmIfpQ1kjeMG1dVlrsA2591M1CufRd\nWAYPnqyk9h/TJXxXyTJpl8sG/M6Amedqz3PCog/CdfxU+um0a+kWZ0MdtloF\nYDU4CWYnLdbZ6tPHdQKfTeuI9ONb0c9kPdiFooEEOrsMzDleYYWLgnla2yt8\nRDc1MBwiA0jsfQF7IDuhaZr06p/rU8F1mq1z5U1lrPdyZM1fJ+wS3bHtfk8h\n+uvWOArxVSXSHYHIOiRclyxUHDc9EywgDabz5dlfgbqltWWBBhO69Nnj8H73\npbnvIN7V8pS/ibx7pHxPlpCSG9GH2GKCTsA3Uj4YYmfuOwd3dAguiIc2FaDV\n06rHMpHv/1olfBTVmIMyg1Z0oFlSBU1G0o8Ohq2GODxT+mfvgYNSJdgZeV+f\nvBx+Yk5kHX3+C/Y8x5tUinQgtYqc7YGTHuvDOZdrRH8Gl2mu1sPvvD6ljpny\nkLmO\r\n=DRKF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDEcjo/iFJ2eMbypfuWONKS/pZ7MY+06nV63EqI1UXLCAIhAJsoc6Z1TYdwJ91FKgITwRd3xFrnFbEadhlER05AdwbK"}]},"maintainers":[{"name":"averagemarcus","email":"marcus@marcusnoble.co.uk"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/truncatise_0.0.8_1560365286690_0.8950676255656029"},"_hasShrinkwrap":false}},"readme":"# Truncatise\n## JavaScript module to truncate HTML strings.\n\n### Description\nProvides the ability to truncate HTML strings down to excerpts based on character length, word length or paragraph length.\n\n**Features:**\n*\tTruncate based on number of Characters, Words or Paragraphs.\n*\tStrip HTML from returned string.\n*\tProvides a strict flag to specify whether to cut-off mid word or not.\n*\tConfigurable suffix appended to the end of the returned excerpt.\n\n### Install\n  npm install truncatise\n\n### Options (with default values)\n\n```javascript\n{\n  TruncateBy:     'words',  // Options are 'words', 'characters' or 'paragraphs'\n  TruncateLength: 50,    \t  // The count to be used with TruncatedBy\n  StripHTML:      false,    // Whether or not the truncated text should contain HTML tags\n  Strict:         true,     // If set to false the truncated text finish at the end of the word\n  Suffix:         '...'     // Text to be appended to the end of the truncated text\n}\n```\n\n### Example Usage\n\n```javascript\nvar options = {\n  TruncateLength: 4,\n  TruncateBy : \"words\",\n  Strict : false,\n  StripHTML : true,\n  Suffix : ' (Read More)'\n};\nvar excerpt = truncatise(\"<p>This is a test of Truncatise</p>\", options);\nconsole.log(excerpt); // This is a test (Read More)\n```\n","maintainers":[{"name":"averagemarcus","email":"marcus@marcusnoble.co.uk"}],"time":{"modified":"2022-06-27T21:51:33.567Z","created":"2013-10-29T21:54:58.881Z","0.0.1":"2013-10-29T21:55:02.833Z","0.0.2":"2013-11-10T14:54:10.135Z","0.0.3":"2016-03-18T13:58:50.194Z","0.0.4":"2016-03-18T14:13:21.533Z","0.0.5":"2016-03-22T16:11:17.020Z","0.0.6":"2017-02-21T14:15:45.279Z","0.0.7":"2018-04-26T05:02:43.511Z","0.0.8":"2019-06-12T18:48:06.823Z"},"author":{"name":"Marcus Noble"},"repository":{"type":"git","url":"git://github.com/AverageMarcus/Truncatise.git"},"homepage":"https://github.com/AverageMarcus/Truncatise#readme","keywords":["text","truncate","truncatise","word","character","limit","html","tag","strip","paragraph","excerpt"],"bugs":{"url":"https://github.com/AverageMarcus/Truncatise/issues"},"license":"MIT","readmeFilename":"README.md"}