-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
Proposal: change api #13
Comments
What if you want both at the same time? Then it would have to search twice, which could also cause race conditions. |
I would do Just like I usually do with require, |
Then I would have to document how to use it properly and people will still not read it and do it wrong. With destructuring, the current API is fine, IMHO. |
Sure, just suggestion. |
Another reason not to do it is that I just did two major versions for silly stuff, so I don't really want to cause more churn. |
You renamed
.package
in 8140c73 .But why not
readPkgUp
andreadPkgUp.sync
for thejson
, addreadPkgUp.resolve
andreadPkgUp.resolve.sync
to get thepath
, just likerequire
The text was updated successfully, but these errors were encountered: