Package Exports
- from-red-to-green
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (from-red-to-green) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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 = require("from-red-to-green");
var red = fromRedToGreen(0);
var orange = fromRedToGreen(0.25);
var yellow = fromRedToGreen(0.5);
var green = fromRedToGreen(1);