w-cli spins up new WordBox instances. Check out https://github.com/codefeathers/WordBox
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
376 B

'use strict';
const child = require('child_process');
const { normalize } = require('path');
function extract(source, destination) {
child.execSync(`7z x ${source} -o${destination}`);
child.execSync(`mv ${normalize(destination + '/WordBox-master/*')} ${destination}`);
child.execSync(`rm -rf ${normalize(destination + '/WordBox-master/')}`);
};
module.exports = extract;