{"_id":"char-split","_rev":"357468","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":"2024-06-18T08:30:01.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","tarball":"http://registry-npm.ywwl.com/char-split/download/char-split-0.2.0.tgz","integrity":"sha512-FhACZPVF9MxEsk5gkJbVM3Z65bAaPOwJHJYMjvejuQM+LwNCF8iM971IjFIe/pzAK//Ouq7AxuQa4N0yXEmi/Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBZ0YYEKlK0AnJ+jAZ8Wr+51Xt5L7m7V/jXd1SDa0TpCAiEApkskAGZnxHZ4ypfyppW84OyLswEwDema2d+UPOF8nVM="}],"size":2034,"noattachment":false,"key":"/char-split/-/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},"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","tarball":"http://registry-npm.ywwl.com/char-split/download/char-split-0.1.0.tgz","integrity":"sha512-oXLf2/BPjuRPR09SBaOlW8FMD0oBMcmwEe4PhMBHytm/JR0KrySXUvVivJXxAR6EpyE/GumZ7aIkQECAVL4LIQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEgZhhXsc1flB74Mhdjsdr4EEyArAicLRMRieNbiN6QSAiAZEGYAC6uiQGuHeW64yEnSfABBNIPCO+PkIubC4pqZ5Q=="}],"size":2121,"noattachment":false,"key":"/char-split/-/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}},"readme":"char-split\n=================\n\nSplits a string 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')\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"}