{"name":"pull-split","description":"split ported to pull-stream style","version":"0.2.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":"^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":"95b957c6456ff20caf347873be7cf057f1d45674","bugs":{"url":"https://github.com/dominictarr/pull-split/issues"},"_id":"pull-split@0.2.1","_npmVersion":"6.5.0","_nodeVersion":"8.15.0","_npmUser":{"name":"dominictarr","email":"dominic.tarr@gmail.com"},"dist":{"integrity":"sha512-lloBKx+ijuRNvxvhM/SMJQ0r9/0WBGcpCPv8I6MZuYl4D1heUF/eYQObnqVehhtTMYuMwboK7RdhMa4Wg3YB7w==","shasum":"6ee9ddaf7bb74e49cbed9bef8fe295ffa4f915be","tarball":"http://registry-npm.ywwl.com/pull-split/download/pull-split-0.2.1.tgz","fileCount":9,"unpackedSize":6683,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdlCJMCRA9TVsSAnZWagAAyGsP/RpsTLOjIf2CCHGppJPf\n/N2n2QQ21sjNjY21TY9zTR88A7njJXg0j9TGSxbXTzvpEONnpKFQjmpZOleI\nZqYatOI/yaotUGGfkErk3aK4yvXVYqkL1nwKqXTmucKu/1olgBak8Ffxu7dd\nXGoaxk47HvayIKZEOtT3xsptsOavBYP6bFnYkzpFziowAfxvGnY28sQStK0C\n+NxfGLJwnILHliMOS0TVqpW9Y5BSOTZhZplfBeQxq9L+3/ruf2UkO2imUE9J\nsOfTX9iY895cKQh8OZfbWFSe6WVl1mswT5IXwnt1ex7u2WZxZ9AO/8Rj5169\nedECY85fkWcgQV5bh18q27UsR2TpCvgCJiXPkt9OXzH0bB5OqBeO5zhxLxNt\nUnql4k/FAi+EPzdeQPBFy71XfeCraQMnG5UZ5FKpufg6Zu5ePj1UGATK2YFt\n5ZHq2mh3spTQ5AJP51IBRa3e4AIjDLUxMek91a4MydL8pltoDzYCrTHCS+yt\ntnT9MpA8pZ0d2NUF5GYPrZhwZa5M5kwvYvvp+ukdUBykBob+i4n7KIIkVkBG\nw7kMBwLmTnr/+HrjQrvRhEQ2i8ulMuZzKpfRHPiOui/48xb+Jc0jotF8Mgew\nduj4sTRSm9UJ3uPM8o6xOS2LP9HBNX6QyB+V8Cxw4pWFdvPJSG6FpM10pDnL\n1q65\r\n=HHhL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDEyr6Bffe6dmq+LNSgtXizEA0KzLKDId3t1coIYcL9PgIhALVk1tbTSiGlpF0c+H3ApL1y/s0BtyYRsnBp95Em+Xys"}],"size":2641,"noattachment":false,"key":"/pull-split/-/pull-split-0.2.1.tgz"},"maintainers":[{"name":"dominictarr","email":"dominic.tarr@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pull-split_0.2.1_1569989195487_0.5794454914878766"},"_hasShrinkwrap":false,"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":1569989195597,"_cnpm_publish_time":1569989195597,"dist-tags":{"latest":"0.2.1"}}