Skip to content

jwerle/console-stream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

console-stream

Stream interface around console methods

install

Install with component(1):

$ component install jwerle/console-stream

api

ConsoleStream(/Console|Object/ console [, /String/fn])

  • console - A Console object
  • fn - The method name to write with (default: log)

usage

var ConsoleStream = require('console-stream');
var stream = require('through')();
var cstream = ConsoleStream(console);

stream.pipe(cstream);
stream.write('beep');

license

MIT

About

Stream interface around console methods

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published