RunKit + npm: str_shorten

node v8.17.0
version: 1.0.4
endpointsharetweet
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