azu / license-generator

A Command line tool that generate `LICENSE` file.
MIT License
142 stars 20 forks source link

Source licenses from "choosealicense" #24

Open vadcx opened 1 year ago

vadcx commented 1 year ago

Github runs its own repository of machine-readable license templates at https://github.com/github/choosealicense.com, they are used by the Javascript-based tool there: https://github.com/generate/generate-license

The suggestion is to include their license repository instead of maintaining your own files (link to current folder)

This would solve #15 too.

The file format is simple and apparently doesn't require a parser, just need to remove the --- header definition containing metadata. Some licenses contain placeholders, others don't, I think that's their format file for placeholders: _data/fields.yml. A couple potential fields are missing from the current license-generator.

atomicptr commented 1 month ago

The SPDX might be a better resource: https://spdx.org/licenses/

Quite a few projects use the license list and identifier from it