System
* Add function that checks whether a file is a terminal device. * support isTTY function for NodeJS backend. * don't accidentally interpret 'false' string as truthy number * less code duplication.
Co-authored-by: Stiopa Koltsov <stepan.koltsov@gmail.com>