Files
DevToysWeb/lib/uri.ts
2023-06-15 20:00:07 +09:00

5 lines
191 B
TypeScript

import { fromThrowable } from "neverthrow";
export const safeEncodeURIComponent = fromThrowable(encodeURIComponent);
export const safeDecodeURIComponent = fromThrowable(decodeURIComponent);