A JSX transformer for migi
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
build
demo
src
tests
web
.coveralls.yml
.gitattributes
.gitignore
.npmignore
.travis.yml
LICENSE
Makefile
README.md
gulpfile.js
index.js
init.js
logo.jpg
package.json

README.md

A JSX transformer for migi

lefty取自动漫寄生兽主角小右在英文版翻译的镜像名,意指将jsx语言翻译为等价的es6。

NPM version Build Status Coverage Status Dependency Status

INSTALL

npm install lefty

logo

文档

https://github.com/migijs/lefty/wiki/%E6%96%87%E6%A1%A3

API

  • parse(code:String):String 传入要解析的jsx代码,返回翻译好的js代码
  • tokens():Array<Token> 返回jsx的token列表
  • ast():Object 返回jsx的语法树

Demo

License

[MIT License]