Permalink
Browse files

add browser support

  • Loading branch information...
1 parent 10b2124 commit 983dd4eb0bca835fe53cb0f25c0cf14957191128 @sindresorhus sindresorhus committed Jul 18, 2015
Showing with 6 additions and 2 deletions.
  1. +2 −0 browser.js
  2. +1 −1 index.js
  3. +3 −1 package.json
View
@@ -0,0 +1,2 @@
+'use strict';
+module.exports = false;
View
@@ -69,4 +69,4 @@ if (supportLevel === 0 && 'FORCE_COLOR' in process.env) {
supportLevel = 1;
}
-module.exports = support(supportLevel);
+module.exports = process && support(supportLevel);
View
@@ -14,14 +14,16 @@
"Joshua Appelman <jappelman@xebia.com> (jbnicolai.com)",
"JD Ballard <i.am.qix@gmail.com> (github.com/qix-)"
],
+ "browser": "browser.js",
"engines": {
"node": ">=0.8.0"
},
"scripts": {
"test": "mocha"
},
"files": [
- "index.js"
+ "index.js",
+ "browser.js"
],
"keywords": [
"color",

0 comments on commit 983dd4e

Please sign in to comment.