1.0.4 • Published 6 years ago

zo-tail-f v1.0.4

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

tail-f

watch file like tail -f

Installation

  npm install --save zo-tail-f

Usage

  const tail = require('zo-tail-f')  
  let watcher = tail.watch('test/test.log')
  watcher.on('line', line => {
    console.log(line)
  }) 

api

tail.watch(filename, options)

  • filename:
  • options:
    • encoding: default: 'utf8'
    • mode: 'line' 'chunk' 'stream', default:'line'
    • interval: ms, default: 0 no inspect. Sometimes fs.watch() is delayed too much, For more timely changes, you can set the 'interval' parameter
1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago