UNPKG

@geometrically/minecraft-motd-parser

Version:

Minecraft Server MOTD Parser, can convert to html, json, text.

25 lines (24 loc) 606 B
import { motdJsonType } from "./types"; export declare function isMotdJSONType(object: object): object is motdJsonType; /** * * replace all html tags to &... */ export declare function htmlStringFormatting(text: string): string; /** * clean html tags * * @param text * example: `<span>hello world</span>` * * result: `hello world` */ export declare function cleanHtmlTags(text: string): string; /** * clean motd codes * * Clean all codes from motd source string. * * @param {string} text - motd string include tag § will remove */ export declare function cleanCodes(text: string): string;