logdis-filter-ignore-blank-lines

0.1.0 • Public • Published

logdis-filter-ignore-blank-lines

Filter to ignore incoming lines from stdin, file or stream.

This filter expects the incoming data to be strings, and passes those strings through unchanged if the string contains any data. If the string it empty (or it is undefined) then nothing will be passed through.

Synopsis

Create a command to process stdin and send to stdout, whilst ignoring blank lines:

const logdisCore = require('logdis-core')
const inputStdin = require('logdis-input-stdin')
const filterIgnoreBlankLines = require('logdis-filter-ignore-blank-lines')
const outputStdout = require('logdis-output-stdout')
 
logdisCore()
    .input(inputStdin())
    .filter(filterIgnoreBlankLines())
    .output(outputStdout())

Author

Andrew Chilton:

License

ISC.

(Ends)

Package Sidebar

Install

npm i logdis-filter-ignore-blank-lines

Homepage

logdis.io/

Weekly Downloads

1

Version

0.1.0

License

ISC

Last publish

Collaborators

  • chilts
  • zentype