@trashpanda001/helpers
    Preparing search index...

    Function encodeRfc3986

    • Encodes the given string to be RFC-3986 compliant.

      This is encodeURIComponent plus the percent encoding for !, ', (, ), and *.

      Parameters

      • string: string

        the string to encode

      Returns string

      the encoded string

      import { encodeRfc3986 } from "@trashpanda001/helpers/string"

      encodeRfc3986("interrobang?!")
      // "interrobang%3F%21"