Skip to content
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

Pull license value from license file #22

Open
jamiemjennings opened this issue May 25, 2018 · 1 comment
Open

Pull license value from license file #22

jamiemjennings opened this issue May 25, 2018 · 1 comment

Comments

@jamiemjennings
Copy link
Contributor

jamiemjennings commented May 25, 2018

npm allows for the license to be specified in an external file: https://docs.npmjs.com/files/package.json#license

Example (package.json):

{ "license" : "SEE LICENSE IN <filename>" }

Currently npm-license-crawler will return:

├─ [email protected]
│  ├─ licenses: SEE LICENSE IN LICENSE.txt

It would be preferable for it to return the contents of LICENSE.txt as the licenses output.

@mwittig
Copy link
Owner

mwittig commented Mar 22, 2019

Dumping the file contents to the licenses output may break the output.

I need to check to what extent --relativeLicensePath covers the "SEE LICENSE IN" case. It should work for at least if the filename is LICENSE or LICENSE.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants