read-package-json
Advanced tools
Comparing version 0.1.7 to 0.1.8
{ | ||
"name": "read-package-json", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)", | ||
@@ -5,0 +5,0 @@ "description": "The thing npm uses to read package.json files with semantics and defaults and validation", |
@@ -243,2 +243,3 @@ // vim: set softtabstop=16 shiftwidth=16: | ||
function readme_(file, data, rm, cb) { | ||
var rmfn = path.basename(rm); | ||
fs.readFile(rm, "utf8", function (er, rm) { | ||
@@ -248,2 +249,3 @@ // maybe not readable, or something. | ||
data.readme = rm | ||
data.readmeFilename = rmfn | ||
return cb(er, data) | ||
@@ -250,0 +252,0 @@ }) |
@@ -26,2 +26,3 @@ // vim: set softtabstop=16 shiftwidth=16: | ||
t.equal(data.main, package.main) | ||
t.equal(data.readmeFilename, 'README.md') | ||
@@ -28,0 +29,0 @@ // optional deps are folded in. |
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
32730
657