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 🙏

© 2024 – Pkg Stats / Ryan Hefner

wx2swan

v1.2.20

Published

微信小程序 转换 百度小程序

Downloads

115

Readme

swan小程序搬家工具

Introduction:

工具帮你迁移80%的代码,可能只节省你50%的工作量。 这是个基于Abstract Syntax Tree微信小程序转换成百度小程序的工具。

  • 工具只做了静态语法上的转换,根据一些规则去转换代码,抹平微信小程序语法和百度小程序语法上的差异,避免大家踩坑;
  • 搬家工具是离线的,没有运行时框架,所以有些没法抹平的运行时diff,需要二次开发调整。
  • 使用中的任何问题,都可以提Issues或者加微信小助手:wx2swan-helper;

Quick Start

  1. 外网(稳定版): npm i -g wx2swan

  2. wx2swan 微信小程序的目录 <可选: 生成swan的目录,默认为entryDir_swan> <可选: 生成日志的目录, 默认为outputDir>

    wx2swan ./test/entryDir
    wx2swan ./test/entryDir ./test/outputDir
  3. 新增支持单文件入口转换:

    wx2swan 微信小程序的文件 <可选: 生成swan的目录或文件路径,默认为entryDir_swan/entryFile> <可选: 生成日志的目录, 默认为outputDir>

    注意:如果指定生成swan的文件路径,需要指定正确的文件扩展名,否则将只复制文件不进行处理

    wx2swan ./test/entryFile
    wx2swan ./test/entryFile ./test/outputDir
    wx2swan ./test/entryFile ./test/outputFile
  4. 转换过程中的log都已经输出了,记得去看下转换log哟,会对你接下来的二次开发很有裨益的~~

  5. Enjoy IT ~~~

Document

Feature

  1. parse Abstract Syntax Tree;
  2. traverse and repalce 、transform
  3. generate code
  4. cli console transform log
  5. editor plugin

ChangeLog

Please visit document ChangeLog

更多项目征集