Skip to content
This repository has been archived by the owner on Nov 28, 2018. It is now read-only.

Commit

Permalink
remove trailing in split example
Browse files Browse the repository at this point in the history
  • Loading branch information
北川 committed Sep 4, 2018
1 parent 0cc6c7f commit ee8f8e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/data
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{"foo": 1}
{"foo": 2}
{"foo": 3, "bar": "test"}
{"foo": 3, "bar": "test"}
2 changes: 1 addition & 1 deletion examples/split.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var es = require('..')

process.stdin
.pipe(es.split())
.pipe(es.split(null, null, {trailing: false})) // ignore trailing empty line
.on('data', function (data) {
console.log('data: ' + data)
})
Expand Down

0 comments on commit ee8f8e4

Please sign in to comment.