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

color-bundle

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

color-bundle

Color conversion and manipulation with CSS string support (bundle)

  • 0.1.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Color Bundle

Using the CDN version of Qix-'s color code includes a require, so it can't be run in a browser. This bundled version uses rollup to combine all the dependencies and make a stand-alone version of color.

Additionally, this bundle exposes all named colors in Color.namedColors.

Usage

  • Download color.min.js from this repository.

  • Load it in your HTML in a script tag.

  • Use the global Color function to access the bundle:

    <script src="color.min.js" />
    <script>
    console.log(Color("#bada55e5").rgb().toString());
    // => "rgba(186, 218, 85, 0.9)"
    
    console.log(Color.namedColors.rebeccapurple);
    // => [102, 51, 153] // [r, g, b]
    </script>
    

Home page

Source Repo: https://github.com/Qix-/color Demo page: https://npm.runkit.com/color

Keywords

FAQs

Package last updated on 24 Jul 2019

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