json-fs-query
    Preparing search index...

    Function unmaskStrings

    • Put every placeholder back the way it would be written in a query: strings quoted, arrays as JSON. For error messages, and for reading an array's text as JSON.

      Parameters

      • text: string
      • quote: "'" | "json" = 'json'

        wrap strings with JSON's double quotes (the default) or with single quotes

      Returns string