New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

color-var

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

color-var

A command line utility that uses the library that the name that color project (http://chir.ag/projects/ntc/) and turn it to nice variable

  • 0.1.10
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Name That Color

A command line utility that uses the library that the name that color project (http://chir.ag/projects/ntc/) and turn it to nice variable.

Install

npm install -g color-var

Usage

You use the command line utility color-var and pass in any color that can be processed by One Color.

$ color-var "#a9d91d"
or
$ color-var "a9d91d"
or
$ color-var a9d91d
or
$ color-var "#eee"
or
$ color-var "rgb(124, 96, 200)"
or
$ color-var "rgb(99%, 40%, 0%)"
or
$ color-var "hsl(120, 75%, 75%)"
or
$ color-var "hsv(220, 47%, 12%)"
or

Note that the Name That Color library does not factor in alpha channel.

Libraries Used

  • One Color: Used to be able to convert many color formats to hex to be able to be used with the Name That Color library
  • Name That Color: Used in order to convert hex colors to names

License

This library is released under MIT. The Name That Color library is released under the Creative Commons Attribution 2.5 Generic.

Keywords

FAQs

Package last updated on 08 Dec 2014

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