As per this question:
I’m trying to run pulverizer in node.js, in code.
How do I use command line commands inside node.js?
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Pulverizr is a node module like any other, so once you have it installed, you ‘require’ the module as usual. The command line part, cli.js, isn’t special. All it does is parse command line arguments, and then ‘require’ the standard module file and call the ‘compress’ method.
I don’t know beyond that, you’ll have to check it out. And ‘options’ are optional.