# node-char-split **Repository Path**: mirrors_defunctzombie/node-char-split ## Basic Information - **Project Name**: node-char-split - **Description**: No description available - **Primary Language**: Unknown - **License**: Zlib - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-24 - **Last Updated**: 2026-03-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README char-split ================= Splits an stream on a character (e.g. \\n) and emits the strings in between Install ------- ``` npm install char-split ``` Usage / Examples ---------------- ```js var split = require('char-split') stream.pipe( split() .on('data', function(data) { // line of text }) .on('end', function(data) { // end of stream }) .on('error', function(error) { // error in stream }) ) ``` Optional arguments: ```js split(character = '\n', encoding = 'utf8') ``` Notes ----- For simplicity, char-split doesn't support multi-character split strings. This means splitting on \r\n won't work. License ------- Open source software under the [zlib license](LICENSE).