lucagrulla / node-tail

The zero dependency Node.js module for tailing a file
https://www.lucagrulla.com/node-tail/
MIT License
467 stars 75 forks source link

"Cannot use 'in' operator to search for 'follow'" #135

Closed patriksh closed 3 years ago

patriksh commented 3 years ago

this.follow = 'follow' in options ? options.follow : true;

TypeError: Cannot use 'in' operator to search for 'follow' at new Tail (tail.js:20:32).

node.js v12.2.0

This has been caused by https://github.com/lucagrulla/node-tail/commit/2feb1e970fb3fcc37018146f20cfbc881984285f

this.follow = options.follow || true; works fine but then doesn't allow you to set the option to false.