Find elm dependencies of a given entry file.
$ npm i find-elm-dependencies -S
var findAllDependencies = require('find-elm-dependencies').findAllDependencies;
findAllDependencies('./path/to/Main.elm')
.then(function(dependencies) {
console.log(dependencies);
});
This was extracted from https://github.com/rtfeldman/node-elm-compiler