{"name":"pull-split","description":"split ported to pull-stream style","version":"0.1.1","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":"~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.1","dist":{"shasum":"3d52f934d3517c9170dfaae5a423c695da7058bf","tarball":"http://registry-npm.ywwl.com/pull-split/download/pull-split-0.1.1.tgz","integrity":"sha512-B/Pf11yH365o8NQWG/wcA4R30Cx2t1jBO+iD2CGrXH4F0cAn9oanStqBfUUOkJ/bzWxAwxqGtwEIQK+tiOypug==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHspro/5HTvDNcytIguUinTE5F+KCF1XwI1KnOCdAtATAiEAwbLmPwmIhjViUc12gpY2ZYjNQjjhrXOhMmf5uaMRa3g="}],"size":2239,"noattachment":false,"key":"/pull-split/-/pull-split-0.1.1.tgz"},"_from":".","_npmVersion":"1.2.18","_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":1367715073301,"_cnpm_publish_time":1367715073301,"dist-tags":{"latest":"0.2.1"}}