{"name":"pull-split","description":"split ported to pull-stream style","version":"0.1.3","homepage":"https://github.com/dominictarr/pull-split","repository":{"type":"git","url":"git://github.com/dominictarr/pull-split.git"},"dependencies":{"pull-through":"~1.0.6"},"devDependencies":{"pull-stream":"~2.20.1","tape":"~0.3.0"},"scripts":{"test":"set -e; for t in test/*.js; do node $t; done"},"author":{"name":"Dominic Tarr","email":"dominic.tarr@gmail.com","url":"http://dominictarr.com"},"license":"MIT","gitHead":"ec979df57cc22c94d609f3f1ed318b0f30184a99","bugs":{"url":"https://github.com/dominictarr/pull-split/issues"},"_id":"pull-split@0.1.3","_shasum":"ac87c1fc21c01672d956d308ef9353c8782f58f3","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.3.0","_npmUser":{"name":"dominictarr","email":"dominic.tarr@gmail.com"},"dist":{"shasum":"ac87c1fc21c01672d956d308ef9353c8782f58f3","tarball":"http://registry-npm.ywwl.com/pull-split/download/pull-split-0.1.3.tgz","integrity":"sha512-weHzK2xmf+3vU/OP7C9F6zmBhyK5lvWsCvmMMojshHf8Ex9WGRZkO5UajDKBRTK/6susJdLFB8OKbv2/waPKTQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC2EPeetfc6BddZqEEd8mOZCj1jSi3YhYessnlfWcdFIAIhAJ8JA9qUkzgA6k0/1R29VuwWk/cnQCc216XnhW8L5yv0"}],"size":2218,"noattachment":false,"key":"/pull-split/-/pull-split-0.1.3.tgz"},"maintainers":[{"name":"dominictarr","email":"dominic.tarr@gmail.com"}],"directories":{},"readme":"# pull-split\n\n[split](https://github.com/dominictarr/split) ported to\n[pull-stream](https://github.com/dominictarr/pull-stream) style.\n\n## Example\n\n``` js\nvar pull = require('pull-stream')\nvar split = require('pull-split')\n\npull(\n  textStream\n  split(),\n  output\n)\n```\n\nif the textStream is buffers, and contain UTF8\n(it probably will if you have german or chinese friends, etc)\nthen you MUST use this with `pull-utf8-decoder`\n\n``` js\nvar pull = require('pull-stream')\nvar split = require('pull-split')\nvar utf8 = require('pull-utf8-decoder')\n\npull(\n  textStream\n  utf8(),\n  split(),\n  output\n)\n```\n\n## split(matcher, mapper, reverse, skipLast)\n\n### matcher - string or regexp.\n\nunit to split by, defaults to `\\n`\n\n### mapper - function\n\nfunction to apply to each line matched.\n\n### reverse - boolean\n\nif true, emit lines in reverse. use this if the input is a file\nyou are reading backwards.\n\n### skipLast - boolean\n\nuse this to skip the last value if it is and empty string `''`\nif this is not set then the behavior is the same as `String#split`\n\n## License\n\nMIT\n\n","publish_time":1453886111545,"_cnpm_publish_time":1453886111545,"dist-tags":{"latest":"0.2.1"}}