2.0.0 • Published 6 years ago

babel-runner v2.0.0

Weekly downloads
30
License
MIT
Repository
github
Last release
6 years ago

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.js

Usage - Command-line

const babelRunner = require('babel-runner');

babelRunner({
  fileToRun: path.resolve(__dirname, `./myuniversalfile.js`),
});