litpro-babel

0.1.0 • Public • Published

Litpro-babel Build Status

This implements running babel from the literate programming. The command is js-babel. It takes in ES6 code and outputs ES5 code as best as can be done.

This is a plugin for literate-programming.

Install npm install litpro-babel and then you can use this by requiring it in the lprc.js file.

Example lprc.js

module.exports = function (Folder) {
    require("litpro-babel")(Folder);
}

Example project.md

heading

This is a file that will generate a simple.js

console.log( [" a", "b", " c "].map( s => s.trim() ));

simple.js

Readme

Keywords

Package Sidebar

Install

npm i litpro-babel

Weekly Downloads

2

Version

0.1.0

License

MIT

Last publish

Collaborators

  • jostylr