Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Truncate string input? #51

Closed
Catsvilles opened this issue Jun 7, 2020 · 2 comments
Closed

Truncate string input? #51

Catsvilles opened this issue Jun 7, 2020 · 2 comments

Comments

@Catsvilles
Copy link

Is it possible to truncate the output of the "slugified" string if it's way too long? Thanks!

@sindresorhus
Copy link
Owner

Why does the package need to handle that? You can just slugifiedString.slice(0, maxLength).

@Catsvilles
Copy link
Author

@sindresorhus Thanks for the reply, you are right, I should just truncate it myself separately. I guess, I just got used to previous stack/package where it was done automatically. But ofc there is no need for this package to do it too. Cheers! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants