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

@ndj-fe/mp-promisify

v1.0.4

Published

Wechat miniprogram promisify apis

Downloads

3

Readme

@ndj/mp-promisify

相对于社区版本的小程序 promisify 工具库,此库提供额外的:

  1. 所有 promisify api 完善的 typescript 支持
  2. 仅对官方遗留的不能支持 promise(因为历史遗留问题)提供 promisify 支持,例如 request,downloadFile等。
  3. 利用爬虫,自动化同步生成更新的版本,不需要人工维护,参见脚本config/index.ts 中使用 ndj-cli 导出的 API getWeixinMpApis

目前支持的 apis:

// api types
export type WxApi =
| typeof wx.getSystemInfoAsync
| typeof wx.getSkylineInfo
| typeof wx.getRendererUserAgent
| typeof wx.preloadWebview
| typeof wx.preloadSkylineView
| typeof wx.preloadAssets
| typeof wx.getShareInfo
| typeof wx.authPrivateMessage
| typeof wx.enableAlertBeforeUnload
| typeof wx.disableAlertBeforeUnload
| typeof wx.setWindowSize
| typeof wx.request
| typeof wx.downloadFile
| typeof wx.uploadFile
| typeof wx.connectSocket
| typeof wx.requestPluginPayment
| typeof wx.editImage
| typeof wx.cropImage
| typeof wx.openVideoEditor
| typeof wx.getFuzzyLocation
| typeof wx.saveFileToDisk
| typeof wx.pluginLogin
| typeof wx.login
| typeof wx.getUserInfo
| typeof wx.authorizeForMiniProgram
| typeof wx.getWeRunData
| typeof wx.checkIsAddedToMyMiniProgram
| typeof wx.openChannelsUserProfile
| typeof wx.openChannelsLive
| typeof wx.openChannelsEvent
| typeof wx.openChannelsActivity
| typeof wx.getChannelsShareKey
| typeof wx.getChannelsLiveNoticeInfo
| typeof wx.getChannelsLiveInfo
| typeof wx.requestDeviceVoIP
| typeof wx.getDeviceVoIPList
| typeof wx.getGroupEnterInfo
| typeof wx.openCustomerServiceChat
| typeof wx.chooseContact
| typeof wx.getLocalIPAddress
| typeof wx.setVisualEffectOnCapture
| typeof wx.getScreenRecordingState
| typeof wx.sendSms
| typeof wx.getInferenceEnvInfo
| typeof wx.stopFaceDetect
| typeof wx.initFaceDetect
| typeof wx.faceDetect

安装

pnpm install http://gitlab.corp.niudaji.com/h5/ndj-npm/-/archive/xxxxx.tar?private_token=Your_Token