Skip to content

Commit

Permalink
Add browser support
Browse files Browse the repository at this point in the history
Fixes #1.
  • Loading branch information
kevva committed Oct 20, 2015
1 parent 84b8840 commit fd7333e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ var EventEmitter = require('events').EventEmitter;
var fmt = require('util').format;
var inherits = require('util').inherits;
var chalk = require('chalk');
var consoleStream = require('console-stream');
var lpadAlign = require('lpad-align');

/**
Expand All @@ -23,7 +24,7 @@ function Squeak(opts) {
this.align = this.opts.align !== false;
this.indent = this.opts.indent || 2;
this.separator = this.opts.separator || ' : ';
this.stream = this.opts.stream || process.stderr;
this.stream = this.opts.stream || process.stderr || consoleStream();
this.types = [];
}

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
],
"dependencies": {
"chalk": "^1.0.0",
"console-stream": "^0.1.1",
"lpad-align": "^1.0.1"
},
"devDependencies": {
Expand Down

0 comments on commit fd7333e

Please sign in to comment.