Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs for readJson incorrectly states that is accepts options #67

Closed
garyhodgson opened this issue Jun 29, 2014 · 2 comments
Closed

docs for readJson incorrectly states that is accepts options #67

garyhodgson opened this issue Jun 29, 2014 · 2 comments

Comments

@garyhodgson
Copy link

The docs say readJson accepts an options object (readJson(file, [options], callback)), and that the options match those in the fs package, but because it in fact delegates to jsonfile.readFile it does not accept options.

@jprichardson
Copy link
Owner

Ooops, you're right. Looks like a bug in jsonfile: https://github.com/jprichardson/node-jsonfile/blob/master/lib/jsonfile.js

@jprichardson
Copy link
Owner

Fixed: https://github.com/jprichardson/node-fs-extra/releases/tag/0.10.0 Thanks for reporting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants