kevva / bin-wrapper

Binary wrapper that makes your programs seamlessly available as local dependencies
MIT License
152 stars 66 forks source link

API improvements #47

Open kevva opened 8 years ago

kevva commented 8 years ago

Want to make use of Promises and somehow simplify stuff a lot. Also, #31, #37 and #38 needs to be fixed.

kevva commented 8 years ago

@sindresorhus, apart from #37, are there any other things you see can be improved regarding the API?

sindresorhus commented 8 years ago

I wish I didn't have to create this boilerplate file: https://github.com/flowtype/flow-bin/blob/master/lib/install.js

Also wish I could define everything in one file instead of having to have multiple: lib/index.js lib/install.js index.js cli.js. npm exposes through an environment variable when it's run through a postinstall script, so could use that info to have special behavior on install.

Better error handling and messages when something fails.