# wx-to-tt

> transform wx micro app to bytedance micro app

Latest version **0.3.0-beta.3** (published 2023-10-17) · ISC license · 0 weekly downloads

## Install

```sh
npm install wx-to-tt
pnpm add wx-to-tt
yarn add wx-to-tt
bun add wx-to-tt
```

Provides the command `wx2tt`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.0-beta.3 |
| Published | 2023-10-17 |
| First published | 2020-01-17 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=7.6 |
| Dependencies | 16 |
| Unpacked size | 2.3 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | windtraveler, satsuki.ear, yurui.hippo, huangjunming, lieheng, bingming, jzsqlyx |
| Keywords | 小程序, 微信小程序, 字节小程序, 转换, wx, tt |

## Links

- npm: https://www.npmjs.com/package/wx-to-tt
- npm.io page: https://npm.io/package/wx-to-tt

## Dependencies (16)

- [open](https://npm.io/package/open.md) 8.4.0
- [chalk](https://npm.io/package/chalk.md) ^3.0.0
- [vfile](https://npm.io/package/vfile.md) ^4.2.1
- [lodash](https://npm.io/package/lodash.md) ^4.17.15
- [unified](https://npm.io/package/unified.md) ^8.4.2
- [copy-dir](https://npm.io/package/copy-dir.md) ^1.3.0
- [fs-extra](https://npm.io/package/fs-extra.md) ^8.1.0
- [commander](https://npm.io/package/commander.md) ^5.1.0
- [@babel/types](https://npm.io/package/@babel/types.md) ^7.14.2
- [@babel/parser](https://npm.io/package/@babel/parser.md) ^7.14.3
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.14.0
- [recursive-copy](https://npm.io/package/recursive-copy.md) ^2.0.10
- [tma-code-audit](https://npm.io/package/tma-code-audit.md) ^0.0.5
- [@babel/traverse](https://npm.io/package/@babel/traverse.md) 7.23.2
- [@babel/generator](https://npm.io/package/@babel/generator.md) ^7.14.3
- [stricter-htmlparser2](https://npm.io/package/stricter-htmlparser2.md) ^3.9.6

## Alternatives

- [async-exit-hook](https://npm.io/package/async-exit-hook.md) — 3.7M weekly downloads
- [evnty](https://npm.io/package/evnty.md) — 7.2K weekly downloads
- [eleventy-plugin-asciidoc](https://npm.io/package/eleventy-plugin-asciidoc.md) — 3.5K weekly downloads
- [@jswork/next-get2get](https://npm.io/package/@jswork/next-get2get.md) — 945 weekly downloads
- [@dashersw/axon](https://npm.io/package/@dashersw/axon.md) — 934 weekly downloads

## Recent versions

- 0.3.0-beta.3 (latest) — 2023-10-17
- 0.2.4 (test) — 2021-11-02
- 0.3.0-beta.2 — 2023-08-09
- 0.3.0-beta.1 — 2023-08-08
- 0.2.9-beta.8 — 2023-05-16
- 0.2.9-beta.7 — 2023-04-20
- 0.2.9-beta.6 — 2023-04-19
- 0.2.9-beta.5 — 2023-04-18
- 0.2.9-beta.4 — 2023-04-18
- 0.2.9-beta.3 — 2023-04-11
- 0.2.9-beta.2 — 2023-04-11
- 0.2.9-beta.1 — 2023-04-10
- 0.2.9-beta.0 — 2023-04-10
- 0.2.8 — 2023-03-23
- 0.2.7 — 2022-10-10
- … 23 more at https://npm.io/package/wx-to-tt/versions

## README

# 字节跳动小程序一键搬家工具

帮助微信小程序的开发者快速迁移到字节跳动小程序

## Quick Start

1. 安装

   ```bash
   npm i wx-to-tt
   ```

1. wx2tt -i 微信小程序目录 source-directory -o 生成字节跳动小程序的目录

   ```bash
   wx2tt -i ./wxProjects/demo -o ./ttProjects/demo
   ```

1. 可查看转换日志

## Feature

1. parse, traverse, transform, generate
1. 文件后缀替换，.wxml -> .ttml, .wxss -> .ttss, .wxs -> .sjs
1. API 前缀替换，wx -> tt
1. 支持命令行转换
1. 转换日志及优化提示

---
_Source: https://npm.io/package/wx-to-tt · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
