ChemPare Documentation - v0.0.0
    Preparing search index...

    Function urlencode

    • Encodes a string to be used in a URL.

      Parameters

      • str: string

        The string to encode

      Returns string

      The encoded string

      const encoded = urlencode("Hello, world! - 95% ethanol");
      // Returns a value with only safe characters:
      // "Hello%2C+world%21+-+95%25+ethanol"