Tolki String Utilities List
Available String Utilities
These are the string utilities that can be used independently as single functions.
after, afterLast, apa, before, beforeLast, between, betweenFirst, camel, camelCacheSize, charAt, chopEnd, chopStart, contains, containsAll, createRandomStringsNormally, createRandomStringsUsing, createRandomStringsUsingSequence, deduplicate, doesntContain, doesntEndWith, doesntStartWith, endsWith, excerpt, finish, flushCache, headline, is, isAscii, isJson, isMatch, isUrl, kebab, lcfirst, length, limit, lower, makePad, mask, match, matchAll, numbers, padBoth, padLeft, padRight, pascal, password, position, random, remove, repeat, replace, replaceArray, replaceEnd, replaceFirst, replaceLast, replaceMatches, replaceStart, reverse, snake, snakeCacheSize, squish, start, startsWith, stripTags, studly, studlyCacheSize, swap, take, toStringOr, ucfirst, ucsplit, ucwords, unwrap, wordCount, wordWrap, words, wrap
after
Return the remainder of a string after the last occurrence of a given value.
import { after } from "@tolki/str";
const result = after("This is my name", "This is");
// result is " my name"afterLast
Return the remainder of a string after the last occurrence of a given value.
import { afterLast } from "@tolki/str";
const result = afterLast("App\Http\Controllers\Controller", "\\");
// result is "Controller"