{"bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"dist":{"shasum":"d938cabe76d2923564be04e74c03ac7307e97d53","tarball":"https://registry.npmjs.org/@uni/clipboard/-/clipboard-1.0.9-beta.3.tgz","fileCount":94,"integrity":"sha512-CUPdY+b9xPutS2naj5wN80MB6FdwDxU5ToBxpwxdZcn7VmifQkYDLk7JiKAZ9UrkadQTa5r35fsd6sgvSjCDag==","signatures":[{"sig":"MEQCIH4oUQrQh99XyLi0Pj1/xwc+z7u9KgJaE2d/fk/VGLH9AiBJSL0+yEia1p2Yn2YxiN3fWLmCPWgUR14ZdCtvE2h56Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":107590,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjGFM3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqjIBAAoAwAws0aSTHYw+OSzuWcORPs3CWP63dfEDY2FbP+2Fbk/GMW\r\nQbskj2yc2gcGi5iJq6gDN1BTOiJi3zxhjdsOW3osJFSHKbfufI3i7R9A+5Wm\r\nv+YOTfsWpwn1gbrZ0apAlOMDLhfaB6urhND+qZh5HTvKd0DgRYt4gYB6D/Un\r\nDB2Av5oqS8sp5akqNX5sKsf3KfPLEvPUgNu+sjoexS80BhVCtT3OJEph6dKF\r\nVDb1xBrym8LzTCeVeu5z5WwF5i0dDXfN/Mz6WfIhvbxEbIQPU9POT6DPUnWS\r\nCBKigmJou6wREdix/uaHYpDEicgiPvblWtMJzk19LPj0vDzrfQPRLRyzVa0I\r\nK94K5hv/UyjO7HamExq0lVUuShbK9FrLRvgSUQNl2y0joNRPkLzUL6k6jcL5\r\nbtOBjA1X2lwDtgtZlpP5SthditxuwSytYdxbZchzfJXsjga+5QE68/h7om4Q\r\nKTj0P1ZBqAkvdrEgDA5eDzOYFNgCt53rawn0wj2mFYLGQozMxJkU3fWnbZFW\r\n7U7Wi9e+vURhA2A5aMs/Ux1LdDYzKCNkBPcKOd5qcKAcfG+I4rOXFNZc7naH\r\nxc8ZiOQCB36UKCi2fcCmrJ2B5lHjnTtDeRYoJbNIYG8ftkXhCH5mxrSA854P\r\nBy5dxmGyIA7zTPh0y+dT+VeOBfiEn3Y3lqk=\r\n=p0XH\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.3_1662538551594_0.9227964556719037","host":"s3://npm-registry-packages"},"_id":"@uni/clipboard@1.0.9-beta.3","version":"1.0.9-beta.3"}