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

yq-auth

v0.1.10

Published

原圈科技H5授权

Downloads

4

Readme

yq-auth

原圈科技H5授权

安装

使用 npm:

npm install yq-auth
import yqAuth from 'yq-auth'

// 微信
const authData = yqAuth.wx()

// 企微 测试
const authData = yqAuth.wxwork({
  env: 'test',
  corpId: 企业ID,
})

// 企微基础版 测试
const authData = yqAuth.wxworkBase({
  env: 'test'
})

script 标签:

<script src="https://assets.rurushishi.com/jssdk/yq-auth.js"></script>
// 使用 window.yqAuth 等同于npm包方式的 yqAuth

Constants

Typedefs

wx ⇒ wxAuthData

微信授权

Kind: global constant

| Param | Type | Description | | --- | --- | --- | | params | Object | 参数 | | [params.baseURL] | String | 接口请求的baseURL 例:http[s]://abc.xxx.com 标品可不填 | | [params.scope] | string | 可选: snsapi_userinfo (默认), snsapi_base |

wxwork ⇒ wxworkAuthData

企微授权

Kind: global constant

| Param | Type | Description | | --- | --- | --- | | params | Object | 参数 | | [params.env] | String | 环境 测试:test 生产:prod 默认:prod | | [params.baseURL] | String | 接口请求的baseURL 例:http[s]://abc.xxx.com 标品可不填 | | params.corpId | String | 企业id |

wxworkBase ⇒ wxworkBaseAuthData

企微授权 基础版

Kind: global constant

| Param | Type | Description | | --- | --- | --- | | params | Object | 参数 | | [params.type] | String | 设置类型 基础版:base 默认:无 | | [params.env] | String | 设置环境 测试:test 生产:prod 默认:prod | | [params.baseURL] | String | 接口请求的baseURL http[s]://abc.xxx.com 标品可不填 | | params.corpId | String | 非基础版必填corpId |

wxAuthData : Object

Kind: global typedef
Properties

| Name | Type | | --- | --- | | openId | string | | passport | string |

wxworkAuthData : Object

Kind: global typedef
Properties

| Name | Type | | --- | --- | | openUserId | string | | userId | string | | corpId | string | | mobile | string |

wxworkBaseAuthData : Object

Kind: global typedef
Properties

| Name | Type | | --- | --- | | wxgzhWxworkUserId | string | | wxgzhCropid | string | | wxgzhQwUserId | string | | wxgzhQwAppType | string | | avatar | string |