Open vjpr opened 6 years ago
I very much like this idea - particularly the curried / partially applied syntax, but also the object syntax. Counterbalancing this, I'd like to keep this module ridiculously simple. I think it may be best to split this request in two:
trike
to an object full of functions as a distinct module. This avoids potentially tricky type detection (modules that are functions AND have function properties - like express
- would be hard) and provides cleaner code splitting for those who don't need the object syntax.
Inspiration from https://github.com/sindresorhus/pify#usage.