Permalink
Browse files

add test cases; add dev deps

  • Loading branch information...
1 parent f43516c commit f8764fe869b2bf725504f97f80ab2b17c547c3fe Kael committed Aug 3, 2013
Showing with 18 additions and 1 deletion.
  1. +3 −1 package.json
  2. +15 −0 test/rgb.js
View
@@ -15,8 +15,10 @@
"bugs": {
"url": "https://github.com/kaelzhang/typo-rgb/issues"
},
-
"dependencies": {
"color-diff": "~0.1.0"
+ },
+ "devDependencies": {
+ "typo": "~0.1.12"
}
}
View
@@ -0,0 +1,15 @@
+'use strict';
+
+var typo = require('typo')({
+ output: process.stdout
+});
+
+var rgb = require('typo-rgb');
+
+typo.plugin(rgb);
+
+typo.log(
+ '{{rgb:#f26d7d peach font}}' +
+ '{{bg.rgb:#f26d7d|rgb:#000 peach bg and black font}}' +
+ '{{bg.rgb:#f26d7d peach bg and white font}}'
+);

0 comments on commit f8764fe

Please sign in to comment.