Skip to content
Browse files

Merge pull request #2 from tellnes/exports

add browserify support
  • Loading branch information...
2 parents d29f2cc + 3a443a1 commit 104f863d1377b5d353662998f46225c6f2ad7da9 @mmalecki committed Jan 9, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/ansispan.js
View
2 lib/ansispan.js
@@ -39,7 +39,7 @@ ansispan.foregroundColors = {
'37': 'white'
};
-if (typeof module == "object" && typeof window == "undefined") {
+if (typeof module !== 'undefined' && module.exports) {
module.exports = ansispan;
}

0 comments on commit 104f863

Please sign in to comment.
Something went wrong with that request. Please try again.