parent
f769911540
commit
2fcc9c97f2
4 changed files with 21 additions and 3 deletions
@ -0,0 +1,16 @@ |
|||||||
|
const exec = require('child-process-promise').exec; |
||||||
|
|
||||||
|
module.exports = function (docxFile, image){ |
||||||
|
return new Promise ((resolve, reject)=>{ |
||||||
|
exec('mkdir word/media') |
||||||
|
.then(function (result) { |
||||||
|
var stdout = result.stdout; |
||||||
|
var stderr = result.stderr; |
||||||
|
console.log('stdout: ', stdout); |
||||||
|
console.log('stderr: ', stderr); |
||||||
|
}) |
||||||
|
.catch(function (err) { |
||||||
|
console.error('ERROR: ', err); |
||||||
|
}); |
||||||
|
} |
||||||
|
)} |
Loading…
Reference in new issue