from-red-to-green
Get a color from red to green, based on a percentage number.
Installation
Install the package with NPM:
$ npm install from-red-to-green
Usage
The package exposes a function that accepts a number between 0 and 1 as an argument, and returns a HSL color string that can be used in CSS.
Example:
var fromRedToGreen = ;var red = ;var orange = ;var yellow = ;var green = ;