Socket
Socket
Sign inDemoInstall

lin-nine

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    lin-nine

可以将vue语法转化为react语法


Version published
Weekly downloads
2
increased by100%
Maintainers
1
Install size
45.0 kB
Created
Weekly downloads
 

Readme

Source

babel-vue2jsx

将vue的tepmlate语法转化成jsx

如何使用

全局安装

npm i lin-nine -g

新增模块

  1. babel-core 用于在node环境中使用babel
  2. babylon 用于解析代码
  3. babel-traverse 用于更新维护ast树, 常和babylon一起使用
  4. babel-types 是一个用于 AST 节点的 Lodash 式工具库 它包含了构造、验证以及变换 AST 节点的方法。 该工具库包含考虑周到的工具方法,对编写处理AST逻辑非常有用
  5. babel-generator Babel Generator模块是 Babel 的代码生成器,它读取AST并将其转换为代码和源码映射(sourcemaps)。

更新 2018/12/29

完成I/O文件处理, 加入async模块处理并发文件操作

加入cmd操作, 可自行配置命令

-i | --input 输入要转化的文件路径,也可以是文件夹

-o | --output 输入要输出的文件路径

新增props data components 等属性转化, 唯一不足在于需要手动格式化文件

更新 2018/12/26

加入文件遍历, 通过bin/main

Keywords

FAQs

Last updated on 29 Dec 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc