Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
RunKit + npm: str_shorten
node v8.17.0
version:
1.0.4
endpoint
share
tweet
var strShorten = require("str_shorten") var str = "We will win if we want"; var shortenStr = strShorten(str, 11); console.log(shortenStr); shortenStr = strShorten(str, 11, {endSymbols: ' -->'}); console.log(shortenStr); shortenStr = strShorten(str, 11, {endSymbols: ''});
Created from: https://npm.runkit.com/str_shorten
Loading…
no comments
sign in
to comment