nl_tokens: / * function indexationOption that return a Promise object . This function will be called if the - i option given in command line . Starting the indexation of the cache dir path given is . / config . json file .
pl_tokens: function indexationOption ( ) { return new Promise ( ( resolve , reject ) => { logger_1 . logger . log ( 'info' , ` ` ) ; indexation ( configContent . previousCacheDir ) . on ( 'indexDone' , ( ) => { logger_1 . logger . log ( 'success' , ` \n ` ) ; resolve ( ) ; } ) . on ( 'indexError' , ( err ) => { logger_1 . logger . log ( 'error' , ` ${ <mask> } ` ) ; reject ( err ) ; } ) ; } ) ; }