kevva / bin-wrapper

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

Expose decompressing #37

Open sindresorhus opened 9 years ago

sindresorhus commented 9 years ago

bin-wrapper is a bit of a black-box if the use-case doesn't fit exactly how bin-wrapper works.

For example I had the need to decompress .tar.xz which requires a plugin to decompress and this is impossible because of all the leaky abstractions.

I had to hack around in the meantime...

mastilver commented 8 years ago

I'm hitting the same issue I will try to have a go tonight

Would that be ok:

binWrapper.setDecompressPlugin(plugin)

plugin

Type: string, Function

if a string is passed, the according module will be required

simonepri commented 7 years ago

To overcome to those restrictions I've forked the project and republished with a different API in the bin-manager package. Hope this could help someone 😃

kevva commented 7 years ago

I'm finishing up my rewrite of this module as we speak so should be able to close this soon.