logdis-filter-ignore-blank-lines

Filter to ignore blank lines in the incoming stream/file. http://logdis.io/

Usage no npm install needed!

<script type="module">
  import logdisFilterIgnoreBlankLines from 'https://cdn.skypack.dev/logdis-filter-ignore-blank-lines';
</script>

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)