davglass / license-checker

Check NPM package licenses
Other
1.6k stars 215 forks source link

--files option does not work due to colorization of keys #209

Open Christian1984 opened 5 years ago

Christian1984 commented 5 years ago

There is an issue with the colorization of keys in bin/license-checker.js:78 ff.

Since keys are colorized here they can no longer be used as filenames when using the --files option. fs throws multiple errors here.

I'd like to fix that by separating responsibilities in terms of separating data (bare text-keys) from their colored representation (on output).

Christian1984 commented 5 years ago

Fixed in https://github.com/davglass/license-checker/pull/210