0.0.15 • Published 1 year ago

hunt-clipboard v0.0.15

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

HuntClipboard

剪切板定向SDK

安装

npm i hunt-clipboard --save

使用

new HuntClipboard(
    {
        onelink?: string,  // onelink链接
        jumpUrl?: string,  // Universal Link跳转协议路径
        jumpID?: string | number, // 跳转协议对应的ID
        action?: 'jump' | 'call',  // 客户端协议处理方式默认为 jump
        data?: object  // 其他附加数据
        customData?: object  // 自定义数据,会扩展到最外层属性
    },
    baseUrl: string,   // 加密请求api域名地址 传空字符串则使用base64进行编码
    autoEncrypt: boolean = false,  // 是否需要实例化后自动调用加密
    mergeUrlParams: boolean = false  // 是否需要合并地址栏参数
)

注意

onelink ,jumpID , jumpUrl 三个参数三选一,必须要有一个,建议使用onelink方式

baseUrl 可以传空字符,传空字符将会使用base64转码

示例

const htcb = new HuntClipboard({
    onelink: "https://xxxx.xxx"
}, '//api.xxx.com', true, true)

htcb.copy()
0.0.13

1 year ago

0.0.15

1 year ago

0.0.12

1 year ago

0.0.11

1 year ago

0.0.10

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago