0.2.2 • Published 5 years ago
@egoist/bundle-runner v0.2.2
bundle-runner
Install
yarn add @egoist/bundle-runner
Usage
const { createBundleRunner } = require('@egoist/bundle-runner')
const runner = createBundleRunner('entry.js', {
'entry.js': `module.exports = context => context.a + context.b`
})
runner({ a: 1, b: 2 }).then(result => {
console.log(result)
//=> 3
})
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Author
bundle-runner © EGOIST, Released under the MIT License. Authored and maintained by EGOIST with help from contributors (list).
egoist.sh · GitHub @EGOIST · Twitter @_egoistlily