Skip to content

migijs/lefty

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
src
 
 
 
 
web
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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]

About

A JSX transformer for migi

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published