URI
SafeURI
encode
import { SafeURI } from 'funkcia/uri';
// ββββ Result<string, URIError>
// βΌ
const result = SafeURI.encode('https://example.com/path with spaces');
// Output: Ok('https://example.com/path%20with%20spaces')decode
import { SafeURI } from 'funkcia/uri';
// ββββ Result<string, URIError>
// βΌ
const result = SafeURI.decode('https://example.com/path%20with%20spaces');
// Output: Ok('https://example.com/path with spaces')encodeURIComponent
decodeURIComponent
Last updated
Was this helpful?