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

dd2wx

v1.0.22

Published

自动将钉钉小程序代码转换成微信小程序代码

Downloads

79

Readme

dd2wx

引入介绍(Introduction)

可以把钉钉小程序转换成微信小程序 转换度达90%

1 未转换内容为 : 组建的父子调用  即 子接父属性 props  子调用父方法   (dd与wx差异度比较大,考虑到代码书写差异较大,故未做动态转换)
2 各文件之间引入务必使用相对路径
3 css文件中请不要使用hack 
4 转换中大量使用正则 故请dd小程序代码 书写务必规范
5 项目里设置了 config 里面有新生成的项目名添加的后缀 默认是WX  里面还设置了白名单(直接复制不进行转换)  还设置了jump名单(不复制不转换)
6 代码难度不大 主要是正则+2套小程序不同api的二次封装  自动化总是好的

安装方式

npm install dd2wx -D

使用步骤(how to use)

使用步骤

第一、 package.json 配置启动命令
# 例如
"scripts": {
    "dd2wx": "node node_modules/dd2wx/index.js inputPath=D:/a/b"
}
# inputPath 为要转换的钉钉小程序的项目路径  
# 转换后的微信小程序项目会生成在钉钉小程序的同级目录  项目名为钉钉小程序项目名称后+'WX'
# 例如   项目名   testDD   ===>    testDDWX

第二、 执行命令
# npm run dd2wx