Skip to content

Commit

Permalink
Merge pull request #86 from drewfish/copying
Browse files Browse the repository at this point in the history
also support COPYING file
  • Loading branch information
davglass committed Nov 9, 2016
2 parents 329c367 + 380aa26 commit dc20157
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

```
Expand All @@ -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
--------
Expand All @@ -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
```
Expand Down
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit dc20157

Please sign in to comment.