Skip to content

migijs/lefty

Repository files navigation

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]

Releases

No releases published

Packages

No packages published