Docs for Release: 2.4.1
    Preparing search index...

    Variable HelpersConst

    Helpers: {
        b64: (str: string) => string;
        escapeHtml: (s: string) => string;
        objToTable: (
            obj: Record<any, any>,
            headers?: string[],
            escape?: boolean,
        ) => string;
    } = ...

    Utility functions for various operations, mostly related to opinionated HTML formatting.

    Type declaration

    • Readonlyb64: (str: string) => string

      Shorthand base64 string encode in Node.

    • ReadonlyescapeHtml: (s: string) => string

      Basic HTML escaping function that replaces all non-alphanumeric characters with their HTML entity equivalents.

    • ReadonlyobjToTable: (obj: Record<any, any>, headers?: string[], escape?: boolean) => string

      Converts an object to an HTML table string, using each key+value as a row.

      Output format looks like this:

      <table>
      <tbody>
      <tr><td><b>KEY:</b></td><td>VALUE</td></tr>
      </tbody>
      </table>