Functions9 public, 0 private
public | string | encodeBase64url | |
required | string | base64 | |
Replaces various characters in the provided string for safe usage as filename. | |||
public | string | encodeForFilename | |
required | string | value | |
Converts the provided HTML and encodes it for JavaScript. | |||
public | string | encodeHtmlForJS | |
required | string | html | |
Wrapper for the native [encodeForJavaScript] function. | |||
public | string | encodeForJavaScript | |
required | string | value | |
any | OPTIONS | false | |
option | boolean | canonicalize | false |
\n | |||
option | boolean | keepNewLines | true |
Encodes a string to be used as JSON string value. | |||
public | string | encodeForJSON | |
required | string | value | |
Hashes the provided string using 32 Bit prime and offset values for the FNV1a algorithm (Fowler-Noll-Vo). | |||
public | numeric | hashFNV1a32 | |
required | string | value | |
Hashes the provided string using 64 Bit prime and offset values for the FNV1a algorithm (Fowler-Noll-Vo). | |||
public | numeric | hashFNV1a64 | |
required | string | value | |
Preserves all whitespaces while encoding the the provided string. | |||
public | string | preserveWhitespaces | |
required | string | text | |
Encodes the provided string as base64 using the safe alphabet according to RFC 4648. | |||
public | string | toBase64url | |
required | binary, string | target | |
string | encoding | UTF-8 | |
boolean | removePadding | true |