logdis-filter-ignore-blank-lines
v0.1.0
Published
Filter to ignore blank lines in the incoming stream/file. http://logdis.io/
Downloads
4
Readme
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)