adrianjost / license-ci-checker

Checks the compatiblity of your license with your dependencies licenses
MIT License
2 stars 1 forks source link

Colorization breaks the whitelist feature #7

Open tommywalkie opened 3 years ago

tommywalkie commented 3 years ago

When dependencies get retrieved from a few lines above the following snippet, all the content gets colorized so if you need to whitelist let's say serial because it has unrecognized MIT* license, you have to write it like \x1B[94mserial\x1B[39m@\x1B[32m0.0.9\x1B[39m, still this cannot be passed via NPM scripts.

https://github.com/adrianjost/license-ci-checker/blob/697b818d84193b70f2ffa21659f2d57d36461256/index.js#L82-L86

This issue is easily solved by a regex, see https://github.com/adrianjost/license-ci-checker/pull/6.