1.0.0 • Published 11 years ago

ignore-writable v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
11 years ago

ignore-writable

A 'passthrough' writable stream, which simply ignores its input. (for mocking)

Example

var sinon = require('sinon'),
    Canoe = require('canoe'),
    IgnoreWritable = require('ignore-writable');

var canoe = new Canoe(/* s3 instance, somehow */)

var canoeStub = sinon.stub(canoe, 'createWriteStream', function() {
  return new IgnoreWritable();
});

License

Copyright (c) 2014 Pedro Tacla Yamada. Licensed under the MIT license. Please refer to the LICENSE file for more info.

1.0.0

11 years ago