npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

wx2ant

v1.0.1

Published

微信小程序 转 支付宝小程序

Readme

微信小程序 转 支付宝小程序

项目描述

  • 微信小程序一键转化为支付宝小程序

安装使用

使用 npm

// 安装
npm install wx2ant -g
// 转换
wx2ant ./微信小程序目录 ./支付宝小程序目录

直接下载使用

// 下载
git clone https://github.com/CubePoint/wx2ant.git wx2ant
cd ./wx2ant
npm install
// 转换
node index.js ./微信小程序目录 ./支付宝小程序目录

注意事项

  1. 会在支付宝小程序目录下./utils/引入wzapi.js,作为微信支付宝api兼容库

  2. 会在支付宝小程序目录下./app.acss文件顶部引入antdefault.css中的样式,作为样式兼容

  3. textarea标签需要闭合标签,否则转义会失败

  4. 支付宝端scrollview 无法height:100%需要absulote

  5. 支付宝端picker无法设置样式,需要在picker里面套个view设置

  6. 特殊处理,支付宝不支持标签picker mode=date模式,会改用view标签,picker中的属性都会用data-,tapDatePicker作为触发事件

     // 微信小程序-未转换
     <picker mode="date" value="{{currentDate}}" fields="month" bindchange="filterDate">
       {{currentDate}}
     </picker>
     // 支付宝小程序-转换后
     <view data-value="currentDate" data-fields="month" data-bindchange="filterDate" onTap="tapDatePicker">
       {{currentDate}}
     </view>

ps:此工具基于 wxml2axmlwxmp2antmp 改动

ps:最新兼容更新时间 2018.8.1