Skip to content

arthurvr/parse-rgb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

parse-rgb Build Status

Parse an rgb() color

Install

$ npm install --save parse-rgb

Usage

const parseRgb = require('parse-rgb');

parseRgb('rgb(34, 50, 2)');
//=> {red: 34, green: 50, blue: 2}

License

MIT © Arthur Verschaeve