Open sindresorhus opened 9 years ago
I'm hitting the same issue I will try to have a go tonight
Would that be ok:
binWrapper.setDecompressPlugin(plugin)
Type: string
, Function
if a string is passed, the according module will be required
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 😃
I'm finishing up my rewrite of this module as we speak so should be able to close this soon.
bin-wrapper
is a bit of a black-box if the use-case doesn't fit exactly howbin-wrapper
works.For example I had the need to decompress
.tar.xz
which requires a plugin todecompress
and this is impossible because of all the leaky abstractions.I had to hack around in the meantime...