Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Latest
function validateLength
Re-export
import { validateLength } from "https://deno.land/x/discordeno_cache_plugin@0.0.21/deps.ts";

Validates the length of a string in JS. Certain characters in JS can have multiple numbers in length in unicode and discords api is in python which treats length differently.

Parameters

text: string
options: { max?: number; min?: number; }