- Notifications
You must be signed in to change notification settings - Fork10
🐙 Truncate text and keeps urls safe.
NotificationsYou must be signed in to change notification settings
FGRibreau/node-truncate
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Truncate text and keeps urls safe.
Install the module with:npm install truncate
- Open-Source self-hostable or fully-managedwebhook as a service
- Charts, simple as a URL. No more server-side rendering pain, 1 url = 1 chart
- Looking for a managed Keycloak IAM ?
// BrowserString.truncate("1234 http://google.com hey :)",2)==="12…"
// NodeJS>truncate=require('truncate');>truncate("1234 http://google.com hey :)",4);"1234…">truncate("1234 http://google.com hey :)",4,{ellipsis:null});// or ellipsis:''"1234">truncate("1234 http://google.com hey :)",6);"1234 http://google.com…">truncate("1234 http://google.com hey :)",100);"1234 http://google.com hey :)"
I maintain this project in my free time, if it helped you please support my work viapaypal orbitcoins, thanks a lot!
Copyright (c) 2014 Francois-Guillaume RibreauLicensed under the MIT license.
About
🐙 Truncate text and keeps urls safe.
Topics
Resources
Stars
Watchers
Forks
Packages0
No packages published