{"name":"pull-split","description":"split ported to pull-stream style","version":"0.1.0","homepage":"https://github.com/dominictarr/pull-split","repository":{"type":"git","url":"git://github.com/dominictarr/pull-split.git"},"dependencies":{"pull-through":"~1.0.0"},"devDependencies":{"pull-stream":"~1.1.0","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","_id":"pull-split@0.1.0","dist":{"shasum":"01bf1efb311c239c654a3f9ddb3f7c57886f6cbb","tarball":"http://registry-npm.ywwl.com/pull-split/download/pull-split-0.1.0.tgz","integrity":"sha512-wFxpNPU5oSTgDn7r5r245+p8/S1MMMljGOeDOL1bNjuazH50rAovHH01sK2wcuDAJvMRuCdE8DLE2zHdFkeL0g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGIqLXrVhx1uoVl4oKE+oWseJ9l8pYhKxfNdZU2T4Cz6AiEAjNpOKk5Y1g7yWc9A3ryp9a2fM+4R/NcTEYnMK4A+0cQ="}],"size":2231,"noattachment":false,"key":"/pull-split/-/pull-split-0.1.0.tgz"},"_from":".","_npmVersion":"1.2.3","_npmUser":{"name":"dominictarr","email":"dominic.tarr@gmail.com"},"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":1364188415768,"_cnpm_publish_time":1364188415768,"dist-tags":{"latest":"0.2.1"}}