Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function toUtf8(input: Uint8Array): string {
if (isNode()) {
return nodeToUtf8(input);
}
return browserToUtf8(input);
}