Skip to content

Commit

Permalink
fix(fromReadable): default to 'data'
Browse files Browse the repository at this point in the history
  • Loading branch information
TylorS committed Nov 27, 2016
1 parent 81c3747 commit b800406
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function fromStream(

export function fromReadable(
nodeStream: NodeJS.ReadableStream,
dataEventName: string,
dataEventName = 'data',
): Stream<Buffer> {
return fromStream(nodeStream, { dataEventName, endEventName: 'end' });
}
Expand Down

0 comments on commit b800406

Please sign in to comment.