NineSec Team Shell
Server IP : 92.205.26.207  /  Your IP : 216.73.216.16
Web Server : Apache
System : Linux 207.26.205.92.host.secureserver.net 4.18.0-553.60.1.el8_10.x86_64 #1 SMP Thu Jul 10 04:01:16 EDT 2025 x86_64
User : zikryat ( 1002)
PHP Version : 8.3.23
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /home/zikryat/public_html/node_modules/class-sanitizer/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/zikryat/public_html/node_modules/class-sanitizer/sanitizer.class.d.ts
/**
 * Sanitizer performs sanitation of the given object based on its metadata.
 */
export declare class Sanitizer {
    private metadataStorage;
    /**
     * Remove characters that appear in the blacklist. The characters are used in a RegExp and so you will need to
     * escape some chars, e.g @Blacklist('\\[\\]')
     */
    static blacklist(str: string, chars: string): string;
    /**
     * Replace <, >, &, ', " and / with HTML entities.
     */
    static escape(str: string): string;
    /**
     * Trim characters from the left-side of the input.
     */
    static ltrim(str: string, chars?: string): string;
    /**
     * Canonicalize an email address.
     */
    static normalizeEmail(str: string, lowercase?: boolean): string | false;
    /**
     * Trim characters from the right-side of the input.
     */
    static rtrim(str: string, chars?: string): string;
    /**
     * Remove characters with a numerical value < 32 and 127, mostly control characters.
     * If keepNewLines is true, newline characters are preserved (\n and \r, hex 0xA and 0xD).
     * Unicode-safe in JavaScript.
     */
    static stripLow(str: string, keepNewLines?: boolean): string;
    /**
     * Convert the input to a boolean.
     * Everything except for '0', 'false' and '' returns true. In strict mode only '1' and 'true' return true.
     */
    static toBoolean(input: any, isStrict?: boolean): boolean;
    /**
     * Convert the input to a date, or null if the input is not a date.
     */
    static toDate(input: any): Date | null;
    /**
     * Convert the input to a float.
     */
    static toFloat(input: any): number;
    /**
     * Convert the input to an integer, or NaN if the input is not an integer.
     */
    static toInt(input: any, radix?: number): number;
    /**
     * Convert the input to a string.
     */
    static toString(input: any): string;
    /**
     * Trim characters (whitespace by default) from both sides of the input. You can specify chars that should be trimmed.
     */
    static trim(str: string, chars?: string): string;
    /**
     * Remove characters that do not appear in the whitelist.
     * The characters are used in a RegExp and so you will need to escape some chars, e.g. whitelist(input, '\\[\\]').
     */
    static whitelist(str: string, chars: string): string;
    /**
     * Performs sanitation of the given object based on the decorator annotations in the class definition.
     */
    sanitize<T = Record<string, any>>(classInstance: InstanceType<any>): T;
    /**
     * Performs sanitation of the given object based on annotations used in given object class.
     * Performs in async-style, useful to use it in chained promises.
     */
    sanitizeAsync<T>(classInstance: T): Promise<T>;
    /**
     * Sanitizes a single value based on the received metadata.
     *
     * @param value the value to sanitize
     * @param metadata the metadata for the given property
     */
    private sanitizeValue;
}

NineSec Team - 2022