@snailicide/g-library
    Preparing search index...

    Function formatString

    • Formats a string by replacing placeholders with provided arguments. This function utilizes the vsprintf method from the format library to apply sprintf-style formatting to the input string using the provided arguments. The arguments can be a single string or an array of strings, which are validated and converted to an array if necessary using a Zod schema.

      Parameters

      • value: string
      • args: string | string[]

      Returns string