babel-runner

2.0.0 • Public • Published

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`),
});

Dependents (1)

Package Sidebar

Install

npm i babel-runner

Weekly Downloads

6

Version

2.0.0

License

MIT

Unpacked Size

7.26 kB

Total Files

10

Last publish

Collaborators

  • stoikerty