{"name":"pull-split","description":"split ported to pull-stream style","version":"0.2.0","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":"^3.2.0","tape":"^4.4.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":"5ff5dc58801d45413d84b1703904ff6bef0ad7a6","bugs":{"url":"https://github.com/dominictarr/pull-split/issues"},"_id":"pull-split@0.2.0","_shasum":"996d288531052209a831388ad0d281df3c823796","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.6.0","_npmUser":{"name":"dominictarr","email":"dominic.tarr@gmail.com"},"dist":{"shasum":"996d288531052209a831388ad0d281df3c823796","tarball":"http://registry-npm.ywwl.com/pull-split/download/pull-split-0.2.0.tgz","integrity":"sha512-dtqRfA6PriS+JCtOZ9E/zP003nPUyxNjaGc1YkPf2ilzccUPXbNGQrv8GjsXmRiyzCLWLJrebGogCtBWa96UQA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBdEDdNyjy/1aIYZ3T53bAVY5GkkQ4lEWLdoztLA2bCCAiBzbQFWL5f1FCmScetW1o9T4/GZTHg4Y1nCIYCBxrTZvA=="}],"size":2753,"noattachment":false,"key":"/pull-split/-/pull-split-0.2.0.tgz"},"maintainers":[{"name":"dominictarr","email":"dominic.tarr@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/pull-split-0.2.0.tgz_1456904684986_0.754261408932507"},"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":1456904685506,"_cnpm_publish_time":1456904685506,"dist-tags":{"latest":"0.2.1"}}