@arted/babel

Transform File by Babel

Usage no npm install needed!

<script type="module">
  import artedBabel from 'https://cdn.skypack.dev/@arted/babel';
</script>

README

babel

Transform File by Babel

Installation

npm

$ npm install -g @arted/babel

or yarn

$ yarn global add @arted/babel

Usage

shell

$ babel from.js to.js

node api

const babel = '@arted/babel';

// 执行文件
const md = babel.executeFile(__dirname + '/md.js');