nl_tokens: Calculate the modules dependencies . Produces an object that has the following structure : { A : [ dep1 dep2 dep3 ... ] B : [ dep1 dep2 dep3 ... ] }
pl_tokens: function getModulesWithDependencies ( root , fileList ) { const filePromises = fileList . map ( async fileWithPath => { const fileSource = await readFileAsync ( fspath . <mask> ( root , fileWithPath ) , 'utf8' ) ; const deps = getDependencies ( fileSource ) ; return [ fileWithPath , deps ] ; } ) ; return Promise . all ( filePromises ) . then ( _ . fromPairs ) ; }