Browse Source

streams2: Export Readable/Writable State classes

v0.9.4-release
isaacs 12 years ago
parent
commit
63ac07b32b
  1. 1
      lib/_stream_readable.js
  2. 3
      lib/_stream_writable.js

1
lib/_stream_readable.js

@ -20,6 +20,7 @@
// USE OR OTHER DEALINGS IN THE SOFTWARE.
module.exports = Readable;
Readable.ReadableState = ReadableState;
var Stream = require('stream');
var util = require('util');

3
lib/_stream_writable.js

@ -23,7 +23,8 @@
// Implement an async ._write(chunk, cb), and it'll handle all
// the drain event emission and buffering.
module.exports = Writable
module.exports = Writable;
Writable.WritableState = WritableState;
var util = require('util');
var Stream = require('stream');

Loading…
Cancel
Save