Skip to main content
Home

Built and signed on GitHub Actions

A collection of utility functions

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
88%
Published
a year ago (0.2.2)
N
number
No documentation available
f
number.average
No documentation available
f
number.clamp
No documentation available
f
number.factorial
No documentation available
f
number.fibonacci
No documentation available
f
number.getDivisors
No documentation available
f
number.getPrimeFactors
No documentation available
f
number.inRange
No documentation available
f
number.isEven
No documentation available
f
number.isNegative
No documentation available
f
number.isOdd
No documentation available
f
number.isPerfect
No documentation available
f
number.isPositive
No documentation available
f
number.isPrime
No documentation available
f
number.isZero
No documentation available
f
number.max
No documentation available
f
number.median
No documentation available
f
number.min
No documentation available
f
number.mod
No documentation available
f
number.random
No documentation available
f
number.randomInt
No documentation available
f
number.sum
No documentation available
f
number.toOrdinal
No documentation available
f
number.toWords
No documentation available
N
string
No documentation available
f
string.camelCase

This function returns the string in camelCase.

f
string.capitalize

This function returns the string with the first character capitalized.

f
string.constantCase

This function returns the string in CONSTANT_CASE.

f
string.format

This function returns a formatted string.

f
string.formatNamed

This function returns a formatted string.

f
string.htmlSafe

This function returns a html safe string.

f
string.isAlpha

This function returns a boolean indicating if str is alphabetic.

f
string.isAlphaNumeric

This function returns a boolean indicating if str is alphanumeric.

f
string.isAnagram

This function returns a boolean indicating if str1 and str2 are anagrams.

f
string.isCamelCase

This function returns a boolean indicating if str is camel case.

f
string.isConstantCase

This function returns a boolean indicating if str is constant case.

f
string.isKebabCase

This function returns a boolean indicating if str is kebab case.

f
string.isLowerCase

This function returns a boolean indicating if str is lowercase.

f
string.isNumeric

This function returns a boolean indicating if str is numeric.

f
string.isPalindrome

This function returns a boolean indicating if str is a palindrome.

f
string.isPascalCase

This function returns a boolean indicating if str is pascal case.

f
string.isSnakeCase

This function returns a boolean indicating if str is snake case.

f
string.isTitleCase

This function returns a boolean indicating if str is title case.

f
string.isUpperCase

This function returns a boolean indicating if str is uppercase.

f
string.kebabCase

This function returns the string in kebab-case.

f
string.mask

This function returns the string with all characters replaced with maskChar.

f
string.normalizeWhitespace

This function returns the string with extra whitespace removed.

f
string.pascalCase

This function returns the string in PascalCase.

f
string.removeExtraWhitespace

This function returns the string with extra whitespace removed.

f
string.removeHtmlTags

This function returns a string with html tags removed.

f
string.removeNonAlpha

This function returns the string with non-alpha characters removed.

f
string.removeNonAlphaNumeric

This function returns the string with non-alphanumeric characters removed.

f
string.removeNonNumeric

This function returns the string with non-numeric characters removed.

f
string.removePrefix

This function returns the string without the prefix.

f
string.removeSuffix

This function returns the string without the suffix.

f
string.removeWhitespace

This function returns the string with whitespace removed.

f
string.reverse

This function returns the string in reverse.

f
string.snakeCase

This function returns the string in snake_case.

f
string.titleCase

This function returns the string in Title Case.

f
string.totalOccurrences

This function returns the total occurrences of subStr in str.

f
string.truncate

This function returns the string truncated to maxLength with suffix appended.

f
string.xssSafe

This function returns a xss safe string.

f
average
No documentation available
f
clamp
No documentation available
f
factorial
No documentation available
f
fibonacci
No documentation available
f
getDivisors
No documentation available
f
getPrimeFactors
No documentation available
f
inRange
No documentation available
f
isEven
No documentation available
f
isNegative
No documentation available
f
isOdd
No documentation available
f
isPerfect
No documentation available
f
isPositive
No documentation available
f
isPrime
No documentation available
f
isZero
No documentation available
f
max
No documentation available
f
median
No documentation available
f
min
No documentation available
f
mod
No documentation available
f
random
No documentation available
f
randomInt
No documentation available
f
sum
No documentation available
f
toOrdinal
No documentation available
f
toWords
No documentation available
f
camelCase

This function returns the string in camelCase.

f
capitalize

This function returns the string with the first character capitalized.

f
constantCase

This function returns the string in CONSTANT_CASE.

f
format

This function returns a formatted string.

f
formatNamed

This function returns a formatted string.

f
htmlSafe

This function returns a html safe string.

f
isAlpha

This function returns a boolean indicating if str is alphabetic.

f
isAlphaNumeric

This function returns a boolean indicating if str is alphanumeric.

f
isAnagram

This function returns a boolean indicating if str1 and str2 are anagrams.

f
isCamelCase

This function returns a boolean indicating if str is camel case.

f
isConstantCase

This function returns a boolean indicating if str is constant case.

f
isKebabCase

This function returns a boolean indicating if str is kebab case.

f
isLowerCase

This function returns a boolean indicating if str is lowercase.

f
isNumeric

This function returns a boolean indicating if str is numeric.

f
isPalindrome

This function returns a boolean indicating if str is a palindrome.

f
isPascalCase

This function returns a boolean indicating if str is pascal case.

f
isSnakeCase

This function returns a boolean indicating if str is snake case.

f
isTitleCase

This function returns a boolean indicating if str is title case.

f
isUpperCase

This function returns a boolean indicating if str is uppercase.

f
kebabCase

This function returns the string in kebab-case.

f
mask

This function returns the string with all characters replaced with maskChar.

f
normalizeWhitespace

This function returns the string with extra whitespace removed.

f
pascalCase

This function returns the string in PascalCase.

f
removeExtraWhitespace

This function returns the string with extra whitespace removed.

f
removeHtmlTags

This function returns a string with html tags removed.

f
removeNonAlpha

This function returns the string with non-alpha characters removed.

f
removeNonAlphaNumeric

This function returns the string with non-alphanumeric characters removed.

f
removeNonNumeric

This function returns the string with non-numeric characters removed.

f
removePrefix

This function returns the string without the prefix.

f
removeSuffix

This function returns the string without the suffix.

f
removeWhitespace

This function returns the string with whitespace removed.

f
reverse

This function returns the string in reverse.

f
snakeCase

This function returns the string in snake_case.

f
titleCase

This function returns the string in Title Case.

f
totalOccurrences

This function returns the total occurrences of subStr in str.

f
truncate

This function returns the string truncated to maxLength with suffix appended.

f
xssSafe

This function returns a xss safe string.

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.