@utilify/core
Version:
Modern, strongly typed, and safe utility function library for JavaScript and TypeScript. Includes type checking, manipulation of arrays, objects, strings, dates, colors, numbers, regular expressions, and more. Compatible with Browser, Node.js, Deno, and B
8 lines • 347 B
TypeScript
/**
* Encodes a string as UTF-8 and returns a Uint8Array.
* @param {string} input - The string to encode.
* @returns {Uint8Array} The UTF-8 encoded bytes.
* @throws {TypeError|Error} If input is not a string or no encoder is available.
*/
export default function utf8Encode(input: string): Uint8Array;
//# sourceMappingURL=utf8Encode.d.ts.map