Liking cljdoc? Tell your friends :D

dogfort.util.codec

Encoding and decoding utilities.

Encoding and decoding utilities.
raw docstring

base64-decodecljs

(base64-decode encoded)

Decode a base64 encoded string into a Buffer.

Decode a base64 encoded string into a Buffer.
sourceraw docstring

base64-encodecljs

(base64-encode unencoded)

Encode a Buffer into a base64 encoded string.

Encode a Buffer into a base64 encoded string.
sourceraw docstring

form-decodecljs

(form-decode encoded & [encoding])

Decode the supplied www-form-urlencoded string using the specified encoding, or UTF-8 by default. If the encoded value is a string, a string is returned. If the encoded value is a map of parameters, a map is returned.

Decode the supplied www-form-urlencoded string using the specified encoding,
or UTF-8 by default. If the encoded value is a string, a string is returned.
If the encoded value is a map of parameters, a map is returned.
sourceraw docstring

form-decode-strcljs

(form-decode-str encoded & [encoding])

Decode the supplied www-form-urlencoded string using the specified encoding, or UTF-8 by default.

Decode the supplied www-form-urlencoded string using the specified encoding,
or UTF-8 by default.
sourceraw docstring

form-encodecljs

(form-encode x & [encoding])

Encode the supplied value into www-form-urlencoded format, often used in URL query strings and POST request bodies, using the specified encoding. If the encoding is not specified, it defaults to UTF-8

Encode the supplied value into www-form-urlencoded format, often used in
URL query strings and POST request bodies, using the specified encoding.
If the encoding is not specified, it defaults to UTF-8
sourceraw docstring

form-encode*cljs

(form-encode* params encoding)
source

percent-decodecljs

(percent-decode encoded & [encoding])

Decode every percent-encoded character in the given string using the specified encoding, or UTF-8 by default.

Decode every percent-encoded character in the given string using the
specified encoding, or UTF-8 by default.
sourceraw docstring

percent-encodecljs

(percent-encode unencoded & [encoding])

Percent-encode every character in the given string using either the specified encoding, or UTF-8 by default.

Percent-encode every character in the given string using either the specified
encoding, or UTF-8 by default.
sourceraw docstring

url-decodecljs

(url-decode encoded & [encoding])

Returns the url-decoded version of the given string, using either a specified encoding or UTF-8 by default. If the encoding is invalid, nil is returned.

Returns the url-decoded version of the given string, using either a specified
encoding or UTF-8 by default. If the encoding is invalid, nil is returned.
sourceraw docstring

url-encodecljs

(url-encode unencoded & [encoding])

Returns the url-encoded version of the given string, using either a specified encoding or UTF-8 by default.

Returns the url-encoded version of the given string, using either a specified
encoding or UTF-8 by default.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close