{"bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"dist":{"shasum":"6644de08c2443d68fef7437eb63bbeecff384a14","tarball":"https://registry.npmjs.org/@uni/clipboard/-/clipboard-1.0.9-beta.1.tgz","fileCount":94,"integrity":"sha512-c3wii3xr86TNj00DZqvZbxqBOMDzSjqTVSGumwhHXGjARz4uAEkAlPhaZrF5LYwg3B3sFgxUUJtBbxgS2McvQA==","signatures":[{"sig":"MEUCIGmQ2rA16XZ3iE4/4scIFDSAqC45GkzOFAq6EiKe+qdTAiEAn+Fre8YKr3URgxqlNe35IdmXKA/l1+NWhW8mUDY5zZ8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":108256,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjGDbWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpF8A/+Kyi3eWHd1I2F0ukUHVm69gbUlxc5nr0xMJ0hyQuRsdoTrhit\r\nclTxwlpN/1uYHMgFbdbcnpk2fSEJ0q9ZId/983fFJQNN/H5WpgjUR//tHZvR\r\nc/jaxZIA4mUZpDEQfWQ5qaxx8vAeln26WL3+9TNRW3EVNAmtUfN8w2j1Ydn6\r\nJ2Jod/gD2vAUBdiJ666JMnNlb8wK2SauWerBDfEFTP29Ip1VYGX22oiknEtQ\r\nT3DPvQ5thf9TpJf4sub0cFqXia0yOQEpxer8IKN4GO04eWssLB7OMAwht9gm\r\n5/GmoCe1nKPnqPEuCvfWhxfZUfkTfkYaRvekBpJAi6xj4o0oWwU63lPtOrm9\r\nhYvq2FE5D/lzGgqfsSOQNDbZfrywpBR3fkMFdbiwvGz/62ncsU4VljsWzZg7\r\nPmjpBDL9EZQdmcZcIPpCO/aFaonG6KmGQ7Zh4955wLvUATIgi8TxLjCpkgEE\r\niJ6AHkOJTN/nNL0jwkiUKHVuKMiHDN/zxbMpQzJANMKWa4KyFVJUfHqLd1hf\r\n+HlJWwrV4yMh81poX0h0MpZnCTibowxY9WMoVlaBU5FLNWopvAfzwyairh4Y\r\nEZtXEBUB48IWdwv1jCN2Og91nWF2ORcs39m4Z1bkZpzHL01AYsc6rGSQkGxR\r\nBnN8iRfhd5AkLX3/MVefxN7uKpLoan6mRU8=\r\n=3Zhq\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.1_1662531286246_0.3213221112002087","host":"s3://npm-registry-packages"},"_id":"@uni/clipboard@1.0.9-beta.1","version":"1.0.9-beta.1"}