UNPKG

easy-api.ts

Version:

A powerful library to create your own API with ease.

1 lines 561 B
Object.defineProperty(exports,"__esModule",{value:!0});let APIFunction_1=require("../../classes/structures/APIFunction");class StringTrim extends APIFunction_1.APIFunction{name="$stringTrim";description="Trim spaces from start and end of the given text.";parameters=[{name:"Text",description:"The text to work with.",type:APIFunction_1.ParamType.String,required:!0,rest:!1,defaultValue:null}];usage="$stringTrim[text]";returns=APIFunction_1.ParamType.String;aliases=["$trim","$trimSpace"];compile=!0;async run(e,[t]){return t.trim()}}exports.default=StringTrim;