{"bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"dist":{"shasum":"410fcf8f870729aa5ddcac5b688f137145e4fb4a","tarball":"https://registry.npmjs.org/@uni/clipboard/-/clipboard-1.0.4-beta.tgz","fileCount":64,"integrity":"sha512-8lQ72rwakORcF6SPOjyk2KOniH/Fj4DYlUAoXgfwGilxw0EfSxS5Dh5CigBCRguqepMkB1NbX/onKHKaQnBG4A==","signatures":[{"sig":"MEQCICtabQc16X2PGnM3OpUGM3WrkiAii38bcpZrHLAmMJxSAiAbZWcnncaaM89HbJtwn/ceZVUQr7iPz5ouwGSsoa0B9w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":56367,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgpMNhCRA9TVsSAnZWagAAiWIP/ilyFjwzMZOzm3e5ZdWg\nyYTcVyl87ZOdaitrZ2neYXknETngPFRcMe+o4DO/OevfRRGmhuqSKhYbkDCv\nqEz8OEBs/0Sk0QyAA8PXmGbpnT4j/vdcnbSyKRYEKSoEKrbtsvDJKhGEB6TG\nPhGvqtp2svVkP9lWzdKM5l7kalJtGwRCNo2g3XGCYg0BN7ugHBeR2WeX5ath\naqZn/8ZwvBn4WmNveGku8JcX1XOblCcbbRCmsWcgogA6DStKZG/NmcW4XzJ1\nqJ8whihMYL4lp5WSkuBIcKpzD4myEvCQ/IphIxRjynf1U/Z1OvHlocZVxaIY\n5X/7cU2SV9f7Hyhb4h2ke2aGLmURBcLX3DQH5IZcPER83pUFjwMblr3QBz+l\nvbey1nvOvmnIBAhqx6g5Unbbzeje+icH9bdoe1Z5DR3fkqGhHyQE823holpp\nurKb0K7KyYU+1vpzh8wYpEBHJ7ja/z9ecXM5jxJK7RGhMl7zwIy2pZvRlBiy\npV5OwFDg2JqIsqpEm/XSXJOO5yO/6bWQf+zdDjU2NEClsB5n3pHwnzdCzC/D\n8DF3FpmTd5san/ytIF4I9AwPs5BrgqlIw99P55qBtFiUl0ZG8fBzH6LYYRx5\nmSnUIPRrdJwRLTq/71++K0w19c8HIUVa6Ea6CDA2ggFMpmBK92eZnTtXJ28r\nxerx\r\n=d+Pc\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":"6.14.5","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":"14.4.0","dependencies":{"@uni/env":"^1.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.en-US.md","_npmOperationalInternal":{"tmp":"tmp/clipboard_1.0.4-beta_1621410656587_0.6721521841830205","host":"s3://npm-registry-packages"},"_id":"@uni/clipboard@1.0.4-beta","version":"1.0.4-beta"}