babel-runner
v2.0.0
Published
Helper for integrating babel config & node hooks
Downloads
60
Maintainers
Readme
babel-runner
A wrapper around babel-register to make universal usage of files easier. Automatically imports a babelrc.js or .babelrc-file as well as a nodeHooks.js file at the root of your project.
Usage - Command-line
babel-runner --run myuniversalfile.jsUsage - Command-line
const babelRunner = require('babel-runner');
babelRunner({
fileToRun: path.resolve(__dirname, `./myuniversalfile.js`),
});