{"_id":"char-split","_rev":"260047","name":"char-split","description":"splits an stream on a character (e.g. \\n) and emits the strings in between","dist-tags":{"latest":"0.2.0"},"maintainers":[{"name":"marcello","email":"marcello@cellosoft.com"}],"time":{"modified":"2021-06-03T16:41:49.000Z","created":"2013-05-31T20:52:21.957Z","0.2.0":"2013-07-02T23:33:16.860Z","0.1.0":"2013-05-31T20:52:21.957Z"},"users":{},"author":{"name":"Marcello Bastéa-Forte","url":"marcello@cellosoft.com"},"repository":{"type":"git","url":"git://github.com/marcello3d/node-char-split.git"},"versions":{"0.2.0":{"name":"char-split","version":"0.2.0","description":"splits an stream on a character (e.g. \\n) and emits the strings in between","main":"index.js","scripts":{"test":"tape test/*"},"repository":{"type":"git","url":"git://github.com/marcello3d/node-char-split.git"},"keywords":["streams","split","newline","newlines"],"dependencies":{"through":"2.3.4"},"devDependencies":{"tap":"0.4.3","tape":"1.0.2"},"author":{"name":"Marcello Bastéa-Forte","url":"marcello@cellosoft.com"},"license":"zlib","readmeFilename":"Readme.md","_id":"char-split@0.2.0","dist":{"shasum":"8755eda641e5db277dd0f509b517c827e50a8edf","size":2034,"noattachment":false,"key":"/char-split/-/char-split-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/char-split/download/char-split-0.2.0.tgz"},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"marcello","email":"marcello@cellosoft.com"},"maintainers":[{"name":"marcello","email":"marcello@cellosoft.com"}],"directories":{},"publish_time":1372807996860,"_cnpm_publish_time":1372807996860,"_hasShrinkwrap":false},"0.1.0":{"name":"char-split","version":"0.1.0","description":"splits an stream on a character (e.g. \\n) and emits the strings in between","main":"index.js","scripts":{"test":"tape test/*"},"repository":{"type":"git","url":"git://github.com/marcello3d/node-char-split.git"},"keywords":["streams","split","newline","newlines"],"dependencies":{"through":"2.3.4"},"devDependencies":{"tap":"0.4.3","tape":"1.0.2"},"author":{"name":"Marcello Bastéa-Forte","url":"marcello@cellosoft.com"},"license":"zlib","readmeFilename":"Readme.md","_id":"char-split@0.1.0","dist":{"shasum":"81480d558fd6d28c4ff33c5a1348ed978d467946","size":2121,"noattachment":false,"key":"/char-split/-/char-split-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/char-split/download/char-split-0.1.0.tgz"},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"marcello","email":"marcello@cellosoft.com"},"maintainers":[{"name":"marcello","email":"marcello@cellosoft.com"}],"directories":{},"publish_time":1370033541957,"_cnpm_publish_time":1370033541957,"_hasShrinkwrap":false}},"readme":"char-split\n=================\n\nSplits an stream on a character (e.g. \\\\n) and emits the strings in between\n\nInstall\n-------\n\n```\nnpm install char-split\n```\n\nUsage / Examples\n----------------\n\n```js\nvar split = require('char-split')\n\nstream.pipe(\n    split()\n        .on('data', function(data) {\n            // line of text\n        })\n        .on('end', function(data) {\n            // end of stream\n        })\n        .on('error', function(error) {\n            // error in stream\n        })\n)\n```\n\nOptional arguments:\n\n```js\nsplit(character = '\\n', encoding = 'utf8')\n```\n\nNotes\n-----\n\nFor simplicity, char-split doesn't support multi-character split strings. This means splitting on \\r\\n won't work.\n\nLicense\n-------\nOpen source software under the [zlib license](LICENSE).","_attachments":{},"readmeFilename":"Readme.md","license":"zlib"}