{"bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"dist":{"shasum":"98191c746d9d88388464d5abd78ed7b228f2a3ff","tarball":"https://registry.npmjs.org/@uni/clipboard/-/clipboard-1.0.5-beta.tgz","fileCount":66,"integrity":"sha512-UohsmzaqgA1aROSOUxaVtfTf1t8i34rIMBkfx83wGyMeuEkhXjWy35JdvpdSOGiznT9fkpGiieWQ2usYxJ/ZqQ==","signatures":[{"sig":"MEQCIGVuzq/YRMakwDyTDAw4z8T5/1TVgCV+RPOY07bUk5rWAiArqHX8ukEIlzTW7KSnCaH8L+Ixm5KprgHPc3wbjXALhw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":62950,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgvgQGCRA9TVsSAnZWagAAlswP/0z/WDNw3ojggBCeAhqv\ny7Jjc2pZTkjqkFZMPGTNZ/HeHolE0E44AYqptTIxYVZesDuHRbXO5Aa/EBQA\nZoePRlnU+YxExzceWqSbzKFcS6RCjPVzCYWFqx32S4xX7VEUkspYR9qMNixV\nbzlCUgg3jnY94jxCSLejnVAgcOH6YX0cfGNyAtmJdKC433v2G+swGdXQfczL\nFwQfRQOIREp1waUkn+bW0pD8zB7WUwto0AZhyq3Jv7LQzdo24RT+1oYScnZS\nbG1/zABZTWMadijHDLPtDnjZ3k3pvG7wiD+oJDusR8XJ719yD0ZPF/Mxeyex\nX2M45ivOg5AEMwn440tirhnnLS0PFnm76mseydtFCGaYk/RVPGz5nolvsBSr\nqHVp/9k8WOjo4M/y9hOqsyrO6JXm6LBXMDWqBj6e0z4ZM1NnqnXYJROINXGR\ncwjIEyKzYZtoPbCEd7rauTfhJqZeIE8+sutfagQ7MZ2HhX6ExNP6Q9AQnscF\nojvO1M0D53bMTeoL1S4SSyCuZkx0mVgk5YDRbDFS4sRfmqp6HkAICbRAknCb\nrMXaTRk1o4X/35TpymiB/qvap5JaB9Mo90bm7gWEOs8CsuQujASLHWat4/Ud\nCmdBmY6Ls2rg4UmD82M6J7KcYB26rLDs81C6rgXnYGHaWpPpr72lcbCL8JkO\nEFWs\r\n=zuev\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\">\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\">\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","bytedance-microapp":"./es/bytedance-microapp/index.js","wechat-miniprogram":"./es/wechat-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":"rax-publisher","email":"rax-public@alibaba-inc.com"},{"name":"bunko","email":"2leg@immaster.cn"}],"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.5-beta_1623065605979_0.6902007704563862","host":"s3://npm-registry-packages"},"_id":"@uni/clipboard@1.0.5-beta","version":"1.0.5-beta"}