-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
License auto detection in the README file #58
Comments
Ooh I like it! Yes! Very good idea. We could store a list of all the main licences and search the readme for the text. Or we could simply look for the word "licence". Thoughts? Any more ideas? |
Searching word |
I implement a LICENSE detection scheme for a readme generator. It works by parsing the LICENSE file with a high accuracy. Can match licenses even if the file has been edited. The code is implemented here: https://github.com/thinkingmedia/readme-plus/blob/master/src/services/licenses.js It requires a cache of LICENSE files that are used as reference: https://github.com/thinkingmedia/readme-plus/tree/master/src/services/_licenses Would you like a pull request for this feature? |
Please do open a pull request. |
Oh, and tests :) |
No, I wouldn't pull my code. I'd have to rewrite it but it shouldn't take long. |
Hello,
I suggest auto detection for the license in the README file.
The text was updated successfully, but these errors were encountered: