From 380aa26799cb527739907484e69c6dae26d5f17a Mon Sep 17 00:00:00 2001 From: Drew Folta Date: Wed, 9 Nov 2016 13:46:20 -0800 Subject: [PATCH] also support COPYING file --- README.md | 6 +++--- lib/index.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index cb62e0a..31c2f47 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ You should see something like this: ``` An asterisk next to a license name means that it was deduced from -an other file than package.json (README, LICENSE, ...) +an other file than package.json (README, LICENSE, COPYING, ...) You could see something like this: ``` @@ -74,7 +74,7 @@ Options * `--out [filepath]` write the data to a specific file. * `--customPath` to add a custom Format file in JSON * `--exclude [list]` exclude modules which licenses are in the comma-separated list from the output -* `--relativeLicensePath` output the location of the license files as relative paths +* `--relativeLicensePath` output the location of the license files as relative paths Examples -------- @@ -83,7 +83,7 @@ Examples license-checker --json > /path/to/licenses.json license-checker --csv --out /path/to/licenses.csv license-checker --unknown -license-checker --customPath customFormatExample.js +license-checker --customPath customFormatExample.js license-checker --exclude 'MIT, MIT/X11, BSD, ISC' license-checker --onlyunknown ``` diff --git a/lib/index.js b/lib/index.js index 0a14e34..abe81d9 100644 --- a/lib/index.js +++ b/lib/index.js @@ -140,7 +140,7 @@ var flatten = function(options) { files = dirFiles.filter(function(filename) { filename = filename.toUpperCase(); var name = path.basename(filename).replace(path.extname(filename), ''); - return name === 'LICENSE' || name === 'LICENCE'; + return name === 'LICENSE' || name === 'LICENCE' || name === 'COPYING'; }); noticeFiles = dirFiles.filter(function(filename) { filename = filename.toUpperCase();