Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Fix for inconsistent README file data, will close npm/read-package-json#31 #34

wants to merge 1 commit into from

2 participants


Not sure if this is the direction that you want to go, but multiple users have stated that simply making the README glob synchronous solves the issue where it isn't consistently loaded.

(Fix for issue #31)


Fixed by using a newer version of glob that doesn't have this bug.

@isaacs isaacs closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  read-json.js
2  read-json.js
@@ -230,7 +230,7 @@ function readmeDescription (file, data) {
function readme (file, data, cb) {
if (data.readme) return cb(null, data);
var dir = path.dirname(file)
- var globOpts = { cwd: dir, nocase: true, mark: true }
+ var globOpts = { cwd: dir, nocase: true, mark: true, sync: true }
glob("README?(.*)", globOpts, function (er, files) {
if (er) return cb(er);
// don't accept directories.
Something went wrong with that request. Please try again.