Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hsl-to-rgb-for-reals

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

hsl-to-rgb-for-reals

simple HSL to RGB converter

  • 1.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
653K
increased by12.6%
Maintainers
1
Weekly downloads
 
Created
Source

hsl-to-rgb-for-reals

##HSL -> RGB Convert HSL values (hue, saturation, light) to RGB values (red, green, blue). Expected values: Hue: [0, 360[ Saturation: [0, 1] Lightness: [0, 1]

For Reals?

Author forgot to export their function in the hsl-to-rgb module, there's a PR that's been sitting for over a year (at time of writing). Let's use hsl-to-rgb-for-reals until original author merges. Huzzah!

Funny story - I forgot to module export in v1.0.0 too! Don't use 1.0.0.

Getting started:

npm install hsl-to-rgb-for-reals --save

Use:

var converter = require('hsl-to-rgb-for-reals');

var slateBlue = converter(223, 0.44, 0.56);

console.log(slateBlue);
// logs [93, 121, 192]

Problems

Bug the original author :D https://github.com/kayellpeee/hsl_rgb_converter/issues

Acknowledgements

  • kayellpeee
  • sponsored by nearForm

Keywords

FAQs

Package last updated on 24 Sep 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