How to use encode-utf8 - 2 common examples

To help you get started, we’ve selected a few encode-utf8 examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github SocialXNetwork / socialx_react_native / packages / RNSocialX / src / app / pollyfillCryptoOld.tsx View on Github external
const base64EncodeString = (input: string) => {
	return encodeBase64(new Uint8Array(encodeUtf8(input)));
};
github SocialXNetwork / socialx_react_native / packages / RNSocialX / src / app / PolyfillCrypto.tsx View on Github external
const base64EncodeString = (input: string) => {
	return encodeBase64(new Uint8Array(encodeUtf8(input)));
};

encode-utf8

Turn a string into an ArrayBuffer by using the UTF8 encoding.

MIT
Latest version published 3 years ago

Package Health Score

62 / 100
Full package analysis

Popular encode-utf8 functions