Embeds console output to the code
npm i -S codemo
const codemo = require('codemo')
codemo
.process("console.log('Hello world!')")
.then(result => consle.log(result))
The result will be
console.log('Hello world!')
//> Hello world!
Return a promise with the resulting file combined with output.
opts.cwd
- the directory in which the code should be executedopts.es6
- whether the code is written using ES6
Return a promise with the resulting file combined with output.
opts.es6
- whether the code is written using ES6