bin-wrapper icon indicating copy to clipboard operation
bin-wrapper copied to clipboard

Expose decompressing

Open sindresorhus opened this issue 9 years ago • 3 comments

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...

sindresorhus avatar Jun 11 '15 23:06 sindresorhus

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

mastilver avatar Dec 09 '15 13:12 mastilver

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 😃

simonepri avatar Jul 18 '17 08:07 simonepri

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

kevva avatar Jul 18 '17 21:07 kevva