/babeljs-python

Python bindings to babeljs

Primary LanguagePython

PyBabeljs

PyBabeljs is a python bindings to Babel.

Installation

$ pip install PyBabeljs

Usage

from babeljs import transformer

transformer.transform_string('const a = () => 233')
transformer.transform('path/to/test.js')

License

MIT