import * as ayonliJsext from "https://deno.land/x/ayonli_jsext@v0.9.72/string/index.ts";
Functions for dealing with strings.
Functions
Returns the byte length of the string. | |
Returns the bytes of the given string. | |
Capitalizes the string, if | |
Returns the characters of the string (emojis are supported). | |
Breaks the string into smaller chunks according to the given length. | |
Compares two strings, returns | |
Counts the occurrence of the sub-string in the string. | |
Removes extra indentation from the string. | |
Replaces the spaces between non-empty characters of the string with hyphens ( | |
Checks if all characters in the string are within the ASCII range. | |
Checks if all characters in the string are emojis. | |
Splits the string into lines by | |
Returns a random string restricted by | |
Removes the given suffix of the string if present. | |
Removes the given prefix of the string if present. | |
f trim | Removes leading and trailing spaces or custom characters of the string. |
Removes trailing spaces or custom characters of the string. | |
Removes leading spaces or custom characters of the string. | |
Truncates the string to the given length (including the ending | |
Extracts words (in latin characters) from the string. |