license-checker
Advanced tools
Comparing version 6.0.0 to 7.0.0
@@ -30,2 +30,3 @@ /* | ||
unknown = options.unknown, | ||
readmeFile, | ||
licenseData, files = [], licenseFile; | ||
@@ -101,2 +102,10 @@ | ||
licenseData = json.license || json.licenses || undefined; | ||
if (json.path && (!json.readme || json.readme.toLowerCase().indexOf('no readme data found') > -1)) { | ||
readmeFile = path.join(json.path, 'README.md'); | ||
if (fs.existsSync(readmeFile)) { | ||
json.readme = fs.readFileSync(readmeFile, 'utf8').toString(); | ||
} | ||
} | ||
if (licenseData) { | ||
@@ -103,0 +112,0 @@ /*istanbul ignore else*/ |
@@ -5,3 +5,3 @@ { | ||
"author": "Dav Glass <davglass@gmail.com>", | ||
"version": "6.0.0", | ||
"version": "7.0.0", | ||
"contributors": [ | ||
@@ -25,2 +25,3 @@ "Adam Weber <adamweber01@gmail.com>", | ||
"Stan Senotrusov <stan@senotrusov.com>", | ||
"Stoyan Revov <st.revov@gmail.com>", | ||
"Tero Keski-Valkama <tero.keski-valkama@cybercom.com>", | ||
@@ -44,2 +45,3 @@ "Thomas Grainger <tagrain@gmail.com>", | ||
"format-package-json": "^0.2.0", | ||
"github-changes": "^1.0.4", | ||
"git-contributors": "^0.2.3", | ||
@@ -65,2 +67,3 @@ "istanbul": "^0.4.3", | ||
"scripts": { | ||
"changes": "github-changes -o davglass -r license-checker", | ||
"contrib": "./scripts/contrib.js", | ||
@@ -67,0 +70,0 @@ "pretest": "jshint --config ./node_modules/yui-lint/jshint.json ./lib/", |
@@ -100,3 +100,3 @@ NPM License Checker | ||
start: '/path/to/start/looking' | ||
}, function(json, err) { | ||
}, function(err, json) { | ||
if (err) { | ||
@@ -103,0 +103,0 @@ //Handle error |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
73362
19
964
11