You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I had a use case where I wanted to clip by number of words and not by characters.
Before I go and implement it, I wanted to ask if you would like that functionality in text-clipper?
The text was updated successfully, but these errors were encountered:
Hi there, I am a little curious as to the actual usecase, but it seems like a reasonable request that would fit the library’s purpose. API-wise it could simply be a maxWords option, similar to maxLines, right? That way it can also be used in combination with the other limits, if desired.
I would certainly welcome a PR for this. Please provide a few tests and update the README. Also keep in mind it should work the same across HTML and plain-text clipping.
Hi,
I had a use case where I wanted to clip by number of words and not by characters.
Before I go and implement it, I wanted to ask if you would like that functionality in text-clipper?
The text was updated successfully, but these errors were encountered: