Socket
Book a DemoInstallSign in
Socket

lino

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lino

split stream into line sized chunks

latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

lino - split stream into line sized chunks

The lino Node.js package splits streams into line sized chunks.

Build Status

Usage

var lino = require('lino')

var lines = lino()

lines.write('Chunks are buffered until the ')
lines.write('the first newline character ')
lines.write('is encountered.\n')
lines.write('No characters are removed.\n')
lines.write('At the end, the rest ')
lines.end('gets flushed.')

lines.pipe(process.stdout)

API

lino(opts)

  • opts Object Passed to both Writable and Readable constructors.

lino exports a single function that returns a Transform stream. This duplex stream splits its inputs at line breaks to output line sized chunks.

Installation

With npm do:

$ npm install lino

License

MIT License

Keywords

split

FAQs

Package last updated on 19 May 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts