split2
Advanced tools
Comparing version 2.0.0 to 2.0.1
{ | ||
"name": "split2", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "split a Text Stream into a Line Stream, using Stream 3", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -6,3 +6,3 @@ # Split2(matcher, mapper, options) | ||
Break up a stream and reassemble it so that each line is a chunk. | ||
`split2` is inspired by [@dominictarr](https://github.com/dominictarr) [`split`](https://github.com/dominictarr) module, | ||
`split2` is inspired by [@dominictarr](https://github.com/dominictarr) [`split`](https://github.com/dominictarr/split) module, | ||
and it is totally API compatible with it. | ||
@@ -61,2 +61,5 @@ However, it is based on [`through2`](https://github.com/rvagg/through2) by [@rvagg](https://github.com/rvagg) and it is fully based on Stream3. | ||
However, in [@dominictarr](https://github.com/dominictarr) [`split`](https://github.com/dominictarr/split) the mapper | ||
is wrapped in a try-catch, while here it is not: if your parsing logic can throw, wrap it yourself. | ||
# License | ||
@@ -63,0 +66,0 @@ |
13071
78