go-enry / go-license-detector

Reliable project licenses detector.
Other
127 stars 36 forks source link

Feature/add scan file content #2

Closed ninnymuggins97 closed 3 years ago

ninnymuggins97 commented 4 years ago

In this PR I exposed a previously private function used to scan the file and find license content. I believe this is a very useful enhancement as it provides the user the option to pass file content directly instead of directory paths. This is useful in batch processing on a larger scale and avoids the workaround of having to create and delete directories to use the tool. :-)

lafriks commented 3 years ago

Actually it should probably be moved to licensedb folder directly

ninnymuggins97 commented 3 years ago

Updated :-)

grantsavage commented 3 years ago

Is there a timeline on when this change can be merged in? I would like to utilize this functionality as well.

lafriks commented 3 years ago

@bzz ping

grantsavage commented 3 years ago

I think releasing a new version would be beneficial! 😃