# text-hex **Repository Path**: ArkTSCentralRepository/text-hex ## Basic Information - **Project Name**: text-hex - **Description**: text-hex 是一个将给定文本转换为十六进制颜色值的库。 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-11-21 - **Last Updated**: 2024-11-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # text-hex --- 基于[text-hex](https://www.npmjs.com/package/text-hex)原库1.0.0版本进行适配,所有功能代码已经转换为`ArkTS`文件 Transforms a given piece of text to a hex color. ## Install ``` ohpm install text-hex ``` ## API ### hex(str: string) * @param {String} str Text to hash and convert to hex. * @returns {String} ## Usage ```js import { hex } from 'text-hex' console.log(hex('foo')); ``` ## License MIT