Open gmarty opened 11 years ago
I do this with the "find" utility and have that exec the binary with each filename I am interested in. Could be something that we can add to the binary tho. Will keep the issue open and think about it :)
This would be especially nice if it would exclude node_modules automatically.
It's a bit clumsy doing this all the time:
find -name '*.js' -not -path './node_modules/*' | xargs unused
Thanks.
Hi,
That would be great if we could specify a path and having the binary to detect unused var in all *.js files on this directory, recursively.
We can use
node-glob
to fetch files recursively given a path.