if ( process . argv . length < 3 ) { process . exit ( 1 ) ; } const directoryName = process . argv [ 2 ] ; const fs = require ( "fs" ) ; try { const watcher = fs . watch ( directoryName , { recursive : true } , ( ) => ( { } ) ) ; watcher . close ( ) ; } catch ( _e ) { } process . exit ( 0 ) ;