# jsonwire **Repository Path**: mirrors_defunctzombie/jsonwire ## Basic Information - **Project Name**: jsonwire - **Description**: newline json read/write stream - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-24 - **Last Updated**: 2026-02-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # jsonwire newline delimited json messages read/write stream ``` var socket; var app = through(function(msg) { // handle parsed objects here }); var wire; socket.pipe(wire = jsonwire(app)).pipe(socket); wire.on('error', function(err) { // some parsing or other error // pipes are disconnected now // up to you to reconnect }); // app just emits whatever it wants sent app.emit('data', {foo:'bar'}); ```