1
0
mirror of https://github.com/thangisme/notes.git synced 2026-06-16 10:40:11 -04:00
Files
notes/node_modules/split2/.README.md.un~

10 lines
33 KiB
Plaintext
Raw Normal View History

2017-03-09 13:16:08 -05:00
Vim<EFBFBD>UnDo<EFBFBD>e7<65>z<EFBFBD><7A>ӊ0@װ<>~<7E><><EFBFBD>fi<66>
<EFBFBD><EFBFBD><EFBFBD><;<3B>*7!DDDDS MJ;_<><00><><EFBFBD><EFBFBD>S K<00>6# Split (matcher)5<>_<EFBFBD>.<00><><EFBFBD><EFBFBD>S K#<00>6m[![build status](https://secure.travis-ci.org/dominictarr/split.png)](http://travis-ci.org/dominictarr/split)5<>_<EFBFBD>.<00><><EFBFBD><EFBFBD>S K#<00>6b[![build status](https://secure.travis-ci.org//split.png)](http://travis-ci.org/dominictarr/split)5<>_<EFBFBD><<00><><EFBFBD><EFBFBD>S K'<00>6j[![build status](https://secure.travis-ci.org/mcollina/split.png)](http://travis-ci.org/dominictarr/split)5<>_<EFBFBD><00><><EFBFBD><EFBFBD>S K*<00>6# Split2 (matcher)5<>_<EFBFBD><00><><EFBFBD><EFBFBD>S K,<00>6# Split2(matcher)5<>_<EFBFBD>Y<00><><EFBFBD><EFBFBD>S K6<00>6k[![build status](https://secure.travis-ci.org/mcollina/split2.png)](http://travis-ci.org/dominictarr/split)5<>_<EFBFBD> Y<00><><EFBFBD><EFBFBD>S K7<00>6`[![build status](https://secure.travis-ci.org/mcollina/split2.png)](http://travis-ci.org//split)5<>_<EFBFBD>
g<00><><EFBFBD><EFBFBD>S K9<00>6h[![build status](https://secure.travis-ci.org/mcollina/split2.png)](http://travis-ci.org/mcollina/split)5<>_<EFBFBD>
k<00><><EFBFBD><EFBFBD>S K=<00>6kBreak up a stream and reassemble it so that each line is a chunk. matcher may be a `String`, or a `RegExp` 5<>_<EFBFBD>
j<00><><EFBFBD><EFBFBD>S K@<00>6lBreak up a stream and reassemble it so that each line is a chunk. matcher may be a `String`, or a `RegExp` .5<EFBFBD>_<EFBFBD> <00><><EFBFBD><EFBFBD>S KC<00>
6 .pipe(split())5<>_<EFBFBD>  B<00><><EFBFBD><EFBFBD>S KK<00>6kBreak up a stream and reassemble it so that each line is a chunk. matcher may be a `String`, or a `RegExp`.5<EFBFBD>_<EFBFBD> J<00><><EFBFBD><EFBFBD>S KP
<00>6lBreak up a stream and reassemble it so that each line is a chunk. `matcher may be a `String`, or a `RegExp`.5<EFBFBD>_<EFBFBD><00><><EFBFBD><EFBFBD>"VJS K<><00> ``` js! split(matcher, mapper, options)```Valid options:N* maxLength - The maximum buffer length without seeing a newline or `matcher`,E if a single line exceeds this, the split stream will emit an error.``` js* split(JSON.parse, null, { maxLength: 2})```5<>_<EFBFBD><00><><EFBFBD><EFBFBD>VJS K<><00>5<>_<EFBFBD>@<00><><EFBFBD><EFBFBD>VJS K<><00>)@`split` takes an optional options object on it's third argument.5<EFBFBD>_<EFBFBD> <00><><EFBFBD><EFBFBD>VJS K<> <00>* .pipe(split(JSON.parse))5<>_<EFBFBD>A<00><><EFBFBD><EFBFBD>VJS K<><00> *mBreak up a stream and reassemble it so that each line is a chunk. `matcher` may be a `String`, or a `RegExp`.5<EFBFBD>_<EFBFBD><00><><EFBFBD><EFBFBD>VJS K<><00> -, `matcher` may be a `String`, or a `RegExp`.5<EFBFBD>_<EFBFBD><00><><EFBFBD><EFBFBD>VJS K<><00> -+`matcher` may be a `String`, or a `RegExp`.5<EFBFBD>_<EFBFBD><00><><EFBFBD><EFBFBD>VJS K<><00> -
<00><><EFBFBD><EFBFBD>VJS K<> <00> ,+`matcher` may be a `String`, or a `RegExp`.&Example, read every line in a file ...<2E>
-&Example, read every line in a file ...<2E> -&Example, read every line in a file ...5<EFBFBD>_<EFBFBD><00><><EFBFBD><EFBFBD>VJS K<> <00>+6`split` accepts a function which transforms each line.5<EFBFBD>_<EFBFBD> <00><><EFBFBD><EFBFBD>VJS K<><00>+ is directly 5<>_<EFBFBD><00><><EFBFBD><EFBFBD>VJS K<><00>+!is directly passed as a Transform5<6D>_<EFBFBD>"<00><><EFBFBD><EFBFBD>VJS K<><00>+"is directly passed as a [Transform5<6D>_<EFBFBD>$<00><><EFBFBD><EFBFBD>VJS K<><00>+$is directly passed as a [Transform](5<>_<EFBFBD> <00><><EFBFBD><EFBFBD>VJS K<><00>-5<>_<EFBFBD>! <00><><EFBFBD><EFBFBD>VJS K<><00>-`5<>_<EFBFBD> "!<00><><EFBFBD><EFBFBD>VJS K<><00>-`split2`5<>_<EFBFBD>!#" <00><><EFBFBD><EFBFBD>VJS K<><00>-
<00>-J`split2` is inspired by @dominictarr split, and it is totally API compatib5<62>_<EFBFBD>#%$L<00><><EFBFBD><EFBFBD>VJS L <00>.<00>-5<>_<EFBFBD>$&% <00><><EFBFBD><EFBFBD>VJS L<00>. However, 5<>_<EFBFBD>%'&"<00><><EFBFBD><EFBFBD>VJS L$<00>."However, it is based on `through2`5<>_<EFBFBD>&('<00><><EFBFBD><EFBFBD>#v#S L/<00>.M`split2` is inspired by @dominictarr split, and it is totally API compatible.5<EFBFBD>_<EFBFBD>')(%<00><><EFBFBD><EFBFBD>#v#S L3<00>.N`split2` is inspired by [@dominictarr split, and it is totally API compatible.5<EFBFBD>_<EFBFBD>(*)'<00><><EFBFBD><EFBFBD>#v#S L5<00>.P`split2` is inspired by [@dominictarr]( split, and it is totally API compatible.5<EFBFBD>_<EFBFBD>)+*G<00><><EFBFBD><EFBFBD>#v#S L@<00>.o`split2` is inspired by [@dominictarr](https://github.com/dominictarr) split, and it is totally API compatible.5<EFBFBD>_<EFBFBD>*,+M<00><><EFBFBD><EFBFBD>#v#S LA<00>.p`split2` is inspired by [@dominictarr](https://github.com/dominictarr) `split, and it is totally API compatible.5<EFBFBD>_<EFBFBD>+-,G<00><><EFBFBD><EFBFBD>