This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/local/bin/node | |
| // From a gist of Jinjor: https://gist.github.com/jinjor/cce51986afa422a3e38befebe091ead2 | |
| const fs = require("fs"); | |
| const childProcess = require("child_process"); | |
| childProcess.exec("./node_modules/.bin/elm-analyse", (e, out) => { | |
| let file; | |
| let unusedImports = {}; | |
| let unusedAliases = {}; | |
| for (let line of out.split("\n")) { |