TobyAndToby / generate-license-file

Generates a text file containing all of the licences for your production dependencies
https://generate-license-file.js.org
ISC License
70 stars 10 forks source link

[Feature Request]: allow to retrieve only the license type #487

Closed jfayot closed 3 days ago

jfayot commented 2 months ago

Is there any way to get only the license type (MIT, Apache-2.0, ISC...) instead of the full license text without parsing ?

tobybessant commented 2 months ago

Hey @jfayot,

Thanks for contributing to the discussion for this package.

This is not a feature we currently support. Please could you elaborate on what exactly the use case of this feature would be? I've included some questions below that might help explore this.

Many thanks, Toby

tobybessant commented 3 days ago

Hey @jfayot,

For us to provide the license name or SPDX identifier for a license (either in the content itself or as additional data) we would need to be guessing based on what we think the license file contains. While some websites and tools provide this functionality (even GitHub do it), it something we're not willing to do as we'd prefer to rely on what the package authors have explicitly declared.

Many thanks,

Toby