UNPKG

easy-api.ts

Version:

A powerful library to create your own API with ease.

1 lines 572 B
Object.defineProperty(exports,"__esModule",{value:!0});let APIFunction_1=require("../../classes/structures/APIFunction");class StringLength extends APIFunction_1.APIFunction{name="$stringLength";description="Returns the character count of the provided text.";parameters=[{name:"Text",description:"The text to work with.",type:APIFunction_1.ParamType.String,required:!0,rest:!1,defaultValue:null}];usage="$stringLength[text]";returns=APIFunction_1.ParamType.Number;aliases=["$charCount"];compile=!0;async run(e,[t]){return t.length.toString()}}exports.default=StringLength;