codemo
Embeds console output to the code

Installation
This module is installed via npm:
npm install codemo --save
Usage
const codemo = require('codemo')
codemo
.process("console.log('Hello world!')")
.then(result => consle.log(result))
The result will be
console.log('Hello world!')
API
codemo.process(code, [opts])
Return a promise with the resulting file combined with output.
opts.cwd - the directory in which the code should be executed
opts.es6 - whether the code is written using ES6
codemo.processFile(filePath, [opts])
Return a promise with the resulting file combined with output.
opts.es6 - whether the code is written using ES6
License
MIT © Zoltan Kochan
Dependencies 
- acorn: ECMAScript parser
- callsites: Get callsites from the V8 stack trace API
- cross-spawn-async: Cross platform child_process#spawn
- file-position: Given a row/column number, return the index of that character within the whole string
- normalize-newline: Normalize the newline characters in a string to
\n
- normalize-path: Normalize file path slashes to be unix-like forward slashes. Also condenses repeat slashes to a single slash and removes and trailing slashes.
- rollup: Next-generation ES6 module bundler
- rollup-plugin-babel: Seamless integration between Rollup and Babel.
- rollup-plugin-includepaths: Rollup plugin to use relative paths in your project files
- source-map: Generates and consumes source maps
Dev Dependencies 
- chai: BDD/TDD assertion library for node.js and the browser. Test framework agnostic.
- cz-conventional-changelog: Commitizen adapter following the conventional-changelog format.
- eslint: An AST-based pattern checker for JavaScript.
- eslint-config-standard: JavaScript Standard Style - ESLint Shareable Config
- eslint-plugin-promise: Enforce best practices for JavaScript promises
- eslint-plugin-standard: ESlint Plugin for the Standard Linter
- ghooks: Simple git hooks
- istanbul: Yet another JS code coverage tool that computes statement, line, function and branch coverage with module loader hooks to transparently add coverage when running tests. Supports all JS coverage use cases including unit tests, server side functional tests
- mocha: simple, flexible, fun test framework
- mos: A pluggable module that injects content into your markdown files via hidden JavaScript snippets
- semantic-release: automated semver compliant package publishing
- validate-commit-msg: Script to validate a commit message follows the conventional changelog standard