Socket
Socket
Sign inDemoInstall

text-hex

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

text-hex

Generate a hex color from the given text


Version published
Weekly downloads
9.1M
increased by3.52%
Maintainers
2
Weekly downloads
 
Created

What is text-hex?

The text-hex npm package is a simple utility that converts text strings into hexadecimal color codes. This can be useful for generating consistent colors based on text input, such as user names or other identifiers.

What are text-hex's main functionalities?

Convert text to hex color

This feature allows you to convert any text string into a hexadecimal color code. The generated color is consistent for the same input text.

const textHex = require('text-hex');
const color = textHex('example');
console.log(color); // Outputs a hex color code like '#3a2f5b'

Other packages similar to text-hex

Keywords

FAQs

Package last updated on 17 Jul 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc