nl_tokens: Checks synchroniously if given file or directory exists . Returns true or false .
pl_tokens: function fileExists ( path , shouldBeDir ) { "use strict" ; try { var lstat = <mask> . lstatSync ( path ) ; if ( shouldBeDir && lstat . isDirectory ( ) ) { return true ; } if ( ! shouldBeDir && lstat . isFile ( ) ) { return true ; } } catch ( err ) { return false ; } return false ; }