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

egg-dd

v1.5.8

Published

基于egg.js的钉钉SDK

Downloads

17

Readme

egg-dd

NPM version build status Test coverage David deps Known Vulnerabilities npm download

适用 egg.js 的钉钉服务端 SDK

Install

$ npm i egg-dd --save

Usage

// {app_root}/config/plugin.js
exports.dd = {
  enable: true,
  package: 'egg-dd',
};

Configuration

// {app_root}/config/config.default.js
exports.dd = {
  client: {
    corpId: '',
    appKey: '',
    appSecret: '',
    agentId: Number,
    // 以下配置参数有默认值
    custom: 'boolean 类型,默认为 false,代表应用类型为 “企业内部开发”,true代表 “授权服务商开发”',
    encodingAESKey: 'string 类型,数据加密密钥,用于消息体的加密,长度固定为43个字符,从a-z,A-Z,0-9共62个字符中选取',
    token: 'string 类型,随机字符串,不能为空',
  }
};

see config/config.default.js for more detail.

API

|参数|说明|补充| |---|---|---| |accessToken|钉钉服务端 API 请求数据时需要的access_token,过期时间7000秒|自动获取| |request|axios 对象,可以发送请求|只能发送钉钉服务端相关请求,自动配置access_token|

|方法|说明|参数|返回|补充| |---|---|---|---|---| |getSignature| |时间戳,随机字符串,密文|签名|密文可以通过 encrypt 方法获得| |encrypt| |明文|密文| | |decrypt| |密文|明文| | |getAccessToken| | |access_token| | |bizRegister| |{call_back_tag:事件类型数组,url:回调地址,type:"register"(默认) 或 "update"}|错误信息| | |bizCallback| |明文,默认 "success"|{msg_signature:消息体签名,timeStamp:时间戳,encrypt:密文,nonce:随机字符串}| |

完善中...

Questions & Suggestions

Please open an issue here.

License

MIT