Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing switch -mx #80

Closed
patrickpissurno opened this issue Jul 2, 2020 · 1 comment
Closed

Missing switch -mx #80

patrickpissurno opened this issue Jul 2, 2020 · 1 comment
Assignees

Comments

@patrickpissurno
Copy link

Hi! Nice work on this module.

I might have missed something, but I just can't find how to specify the following when using this module -mx=9

What I'm trying to do is set the compression level parameter. It seems to me that it is not yet supported (when looking at the source and docs). Could it be?

Thanks!

@q2s2t
Copy link
Owner

q2s2t commented Jul 10, 2020

Hi, thanks for the compliment :)
I didn't test this specific usage but it seem that you can use this https://github.com/quentinrossetti/node-7z#compression-method
So in your case:

const compress = Seven.add('archive.7z', 'files_to_compress', {
  method: ['x=9'] // compression level: Ultra
})

Tell me if it works!

@q2s2t q2s2t added the question label Jul 10, 2020
@q2s2t q2s2t self-assigned this Jul 10, 2020
@q2s2t q2s2t added the stale label Jul 21, 2020
@q2s2t q2s2t closed this as completed Aug 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants