Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Percent.decode

import { Percent } from "https://raw.githubusercontent.com/i-xi-dev/bytes.es/4.4.2/deps.ts"; 

const { decode } = Percent;

Decodes a Percent-encoded string into an Uint8Array.

@example
Percent.decode("%61%62%00%FF");
// → Uint8Array[ 0x61, 0x62, 0x0, 0xFF ]

Percent.decode("ab%00%FF");
// → Uint8Array[ 0x61, 0x62, 0x0, 0xFF ]
function decode(encoded: string, options?: Options): Uint8Array;
§
decode(encoded: string, options?: Options): Uint8Array
[src]

§Parameters

§
encoded: string
[src]

The string to decode.

§
options?: Options optional
[src]

The Percent.Options dictionary.

§Return Type

§
Uint8Array
[src]

An Uint8Array containing the decoded byte sequence.