
Security News
CVE Volume Surges Past 48,000 in 2025 as WordPress Plugin Ecosystem Drives Growth
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.
smart-ellipsis
Advanced tools
cut text and add ellipsis/tail without quirks
When using something like substr and adding ... you get all kind of quirks and this module handle that quirks
npm install smart-ellipsis
const smartEllipsis = require('smart-ellipsis');
smartEllipsis(text, maxLength);
it will not cut in half
smartEllipsis('hello world', 7) // 'hello...'
it will remove extra . and space
smartEllipsis('hello world. what\'s up?', 12) // 'hello world...'
it will remove extra ,
smartEllipsis('hello world, what\'s up?', 11) // 'hello world...'
it will remove extra \n
smartEllipsis('hello world\n what\'s up?', 11) // 'hello world...'
it will remove extra \r\n
smartEllipsis('hello world\r\n what\'s up?', 11) // 'hello world...'
it will remove extra ?
smartEllipsis('hello world? what\'s up?', 11) // 'hello world...'
it will remove !
smartEllipsis('hello world! what\'s up?', 11) // 'hello world...'
FAQs
cut text tail but smarter
The npm package smart-ellipsis receives a total of 251 weekly downloads. As such, smart-ellipsis popularity was classified as not popular.
We found that smart-ellipsis demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.