Code coverage report for beefy/lib/make-io.js

Statements: 100% (11 / 11)      Branches: 100% (4 / 4)      Functions: 100% (3 / 3)      Lines: 100% (11 / 11)      Ignored: none     

All files » beefy/lib/ » make-io.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 231   1 11 11   11           1 5 5     1 1 1      
module.exports = makeIO
 
function makeIO(process, stdout, stderr) {
  stdout = stdout || process.stdout
  stderr = stderr || process.stderr
 
  return {
      isTTY: process.stdout.isTTY
    , error: outputError
    , log: outputLog
  }
 
  function outputLog(what) {
    stdout.write(what)
    stdout.write('\n')
  }
 
  function outputError(what) {
    stderr.write(what)
    stderr.write('\n')
  }
}