From 21d2596b89f23070ff9ab9f9cba47bbcb49b65b9 Mon Sep 17 00:00:00 2001 From: Scott Corgan Date: Mon, 1 Dec 2014 13:31:15 -0800 Subject: [PATCH] docs: update readme --- README.md | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8e22159..76dff94 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,25 @@ -hex-to-rgb -========== +# hex-to-rgb Convert color hex value to rgb + +## Install + +``` +npm install hex-to-rgb --save +``` + +## Usage + +```js +var hexToRgb = require('hex-to-rgb'); + +console.log(hexToRgb('000000')); +console.log(hexToRgb('#ffffff')); +``` + +## Run Tests + +``` +npm install +npm test +```