{"bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"dist":{"shasum":"1bd222fbf5946112eea3476cbb2108596b392707","tarball":"https://registry.npmjs.org/@uni/clipboard/-/clipboard-1.0.9-beta.2.tgz","fileCount":94,"integrity":"sha512-ynSHncjMi8GGZPKA0+6i5O4krDcCMxTEnGr9R+nzc6yTJrM0Knof5frVenbidsV0sNQmD33yjg4n4DTBNvi6GA==","signatures":[{"sig":"MEQCIEkjlXwzNctJvLDuyoxngdnzP/jhTf3bdLJNbzMJXSRDAiAAnZl6iewXaOUDmPDGaycokQMUV6cQ/8HwVXDRGNftsQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":109032,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjGDrnACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmogqA//Yv26X6tFDocxgXZx2Z6JdMGGOkzunXwKmX3ZDFm0nevHDqi6\r\nS8KbFSyrI0MtAH7BBKhkCOfrWVQ8N8cexv0QhO4VRqDQ3DPwjXG52UO1Xyx4\r\nNlStpLSzhYhOzX93AVhc+TyvxXVJ4oLxjMdc93ZhFybBytjhPnLFzmZDbMF3\r\nhNYQu7sOYJS86kFSHLNpAlK4wq68YFLOzxCglMsZggsFT/cfjOEayn58Vu+v\r\nmdgobEVQAkg+5rU5ebemWxf2We/T7f/t08M9/vlnvDVQ7Cmj/5TjT5CtAvKu\r\n7B9gqG29ArW6noK2mD3pkv8PELKho2Ld61Le02aU3s1ozVOOBiaogRhZJnMO\r\nYzEtPTF0I0DFISW0p0voO3S9o2L9YSEMUh3Jlmnk82KL46ANmBwz9EjegRzz\r\nbIJarUqKGLtRnX6+gbkIMgLb3gUIvrl3s2t8cuU/iGH2nARMA9WQdctBHsGa\r\ng4PuCT5srVIfjOskfnuWq9mEr1iFhd9/Tf9jQu6i6w4jV4T2gOZkQ52+7AGE\r\nSf58NPwxCA4rcZnI6n0yzjKz8MaicnUy6ZFOpO02mDVDwg/M1Hk4vqmySW/L\r\nvVbTjVhyUsYGtKKcyirjWhjDQOMVOVoGNi0IM7thgpQN2Hq6VAZigNfAG1An\r\nAu8BahttBhgLl+FlpbGond7FMrx9UMD/3FM=\r\n=aq+d\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","name":"@uni/clipboard","unpkg":"dist/index.js","author":{"name":"rax"},"module":"es/index.js","readme":"# getClipboard \n\n[![npm](https://img.shields.io/npm/v/@uni/clipboard.svg)](https://www.npmjs.com/package/@uni/clipboard)\n\n## Install\n\n```bash\n$ npm install @uni/clipboard --save\n```\nor\n```bash\n$ npm install @uni/apis --save\n```\n## Usage\n\n```javascript\nimport { getClipboard } from '@uni/clipboard';\n\ngetClipboard({\n  success (res){\n    console.log(res.text);\n  }\n});\n\n// promise\ngetClipboard().then(res => {\n  console.log(res.text);\n});\n\n```\n\n## Methods\n\n### `getClipboard()`\nGets the content on the system clipboard.\n\n#### Supported\n\n<img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" /> <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" /> <img alt=\"bytedanceMicroApp\" src=\"https://gw.alicdn.com/tfs/TB1jFtVzO_1gK0jSZFqXXcpaXXa-200-200.svg\" width=\"25px\" height=\"25px\" /> <img alt=\"baiduSmartProgram\" src=\"https://img.alicdn.com/imgextra/i4/O1CN01jngdBb24yGv2Fu34G_!!6000000007459-2-tps-200-200.png\" width=\"25px\" height=\"25px\" title=\"baiduSmartProgram\" /> <img alt=\"kuaiShouMiniProgram\" src=\"https://gw.alicdn.com/imgextra/i4/O1CN01kzmJMM24jcFEzp5Wv_!!6000000007427-2-tps-200-200.png\" width=\"25px\" height=\"25px\" title=\"KuaiShouMiniProgram\" />\n\n#### Arguments\n\n| Property | Type | Description | required | Default |\n| --- | --- | --- | --- | --- |\n| options | `object`  |  | ✔️ | - |\n| options.success | `Function`  | The callback function for a successful API call | ✘ | - |\n| options.fail | `Function`  | The callback function for a failed API call | ✘ | - |\n| options.complete | `Function`  | The callback function used when the API call completed (always executed whether the call succeeds or fails) | ✘ | - |\n\n#### Return\n\n| Property | Type | Description |\n| --- | --- | --- |\n| res | `object` |  |\n| res.text | `string` | The clipboard content |\n\n\n\n### setClipboard \n\nSets the content on the system clipboard.\n\n#### Supported\n\n<img alt=\"browser\" src=\"https://gw.alicdn.com/tfs/TB1uYFobGSs3KVjSZPiXXcsiVXa-200-200.svg\" width=\"25px\" height=\"25px\" /> <img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" /> <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" /> <img alt=\"bytedanceMicroApp\" src=\"https://gw.alicdn.com/tfs/TB1jFtVzO_1gK0jSZFqXXcpaXXa-200-200.svg\" width=\"25px\" height=\"25px\" /> <img alt=\"baiduSmartProgram\" src=\"https://img.alicdn.com/imgextra/i4/O1CN01jngdBb24yGv2Fu34G_!!6000000007459-2-tps-200-200.png\" width=\"25px\" height=\"25px\" title=\"baiduSmartProgram\" /> <img alt=\"kuaiShouMiniProgram\" src=\"https://gw.alicdn.com/imgextra/i4/O1CN01kzmJMM24jcFEzp5Wv_!!6000000007427-2-tps-200-200.png\" width=\"25px\" height=\"25px\" title=\"KuaiShouMiniProgram\" />\n\n#### Usage\n\n```javascript\nimport { setClipboard } from '@uni/clipboard';\n\nsetClipboard({\n  text: 'text',\n  success (res){\n    console.log(res);\n  }\n});\n\n// promise\nsetClipboard({\n  text: 'text'\n}).then(res => {\n  console.log(res);\n});\n\n```\n\n#### Arguments\n\n| Property | Type | Description | required | Default |\n| --- | --- | --- | --- | --- |\n| options | `object` |  | ✔️ | - |\n| options.text | `string` | The clipboard content | ✔️ | - |\n| options.success | `Function`  | The callback function for a successful API call | ✘ | - |\n| options.fail | `Function`  | The callback function for a failed API call | ✘ | - |\n| options.complete | `Function`  | The callback function used when the API call completed (always executed whether the call succeeds or fails) | ✘ | - |\n","exports":{".":{"web":"./es/web/index.js","default":"./es/index.js","miniapp":"./es/ali-miniapp/index.js","baidu-smartprogram":"./es/baidu-smartprogram/index.js","bytedance-microapp":"./es/bytedance-microapp/index.js","wechat-miniprogram":"./es/wechat-miniprogram/index.js","kuaishou-miniprogram":"./es/kuaishou-miniprogram/index.js"},"./*":"./*"},"license":"BSD-3-Clause","typings":"types/index.d.ts","_npmUser":{"name":"bunko","email":"2leg@immaster.cn"},"homepage":"https://github.com/raxjs/universal-api#readme","repository":{"url":"git+ssh://git@github.com/raxjs/universal-api.git","type":"git"},"_npmVersion":"7.15.1","description":"[![npm](https://img.shields.io/npm/v/@uni/clipboard.svg)](https://www.npmjs.com/package/@uni/clipboard)","directories":{},"maintainers":[{"name":"bunko","email":"2leg@immaster.cn"},{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"}],"sideEffects":false,"_nodeVersion":"16.3.0","dependencies":{"@uni/env":"^1.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.en-US.md","_npmOperationalInternal":{"tmp":"tmp/clipboard_1.0.9-beta.2_1662532327066_0.8254965588052703","host":"s3://npm-registry-packages"},"_id":"@uni/clipboard@1.0.9-beta.2","version":"1.0.9-beta.2"}