New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

text-clipper

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

text-clipper - npm Package Versions

2

2.2.0

Diff

Changelog

Source

2.2.0

  • Implement #14: Add stripTags option.
  • Tiny Unicode fix.
  • Treat <audio> and <video> as unbreakable elements.
arendjr
published 2.1.0 •

Changelog

Source

2.1.0

  • Implement #12: Improve support for clipping HTML tables.
arendjr
published 2.0.0 •

Changelog

Source

2.0.0

  • Use TypeScript primarily to ease Deno support.
  • Assume Array.prototype.includes() is available.
  • Upgraded development dependencies.
arendjr
published 1.3.0 •

Changelog

Source

1.3.0

  • Add TypeScript definition.
arendjr
published 1.2.4 •

Changelog

Source

1.2.4

  • Fix #7: Fix two edge cases:
    • Incorrect result when maxLength is less than the size of the indicator.
    • Incorrect indicator when the remaining HTML contains a mix of block and inline elements.
  • Tiny optimization when processing HTML tags.
arendjr
published 1.2.3 •

Changelog

Source

1.2.3

  • Fix #4: Correct clip length when using no indicator (indicator is an empty string).
  • Fix #5: Support ampersands that do not start an HTML character reference.
arendjr
published 1.2.2 •

Changelog

Source

1.2.2

  • Fix building in React Native.
arendjr
published 1.2.1 •

Changelog

Source

1.2.1

  • Improved tag handling and newline counting (#2, thanks to @churchs19).
arendjr
published 1.2.0 •

arendjr
published 1.1.0 •

2
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc