{"bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"dist":{"shasum":"cefbcf8f2153af5a133940aa5db88323dd604ad4","tarball":"https://registry.npmjs.org/@uni/clipboard/-/clipboard-1.0.0-beta1.tgz","fileCount":25,"integrity":"sha512-v2Us8OPlP7Vq22LJBSWvKEuvWhzpi3IoSofKYbKmgPvaJX1aflEsE/tfUpB/zHcjTsSShFj3lWSFs0eqWSCP1g==","signatures":[{"sig":"MEQCIBGvQQH1xEYQPfWUAiZ128nvqxEbQiFojJRS3UqiyKKHAiAHfnkJh+0SJzlYi8aTvDdc84GVo6rAblQQlLRuaFNiSw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":175892,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgOO9BCRA9TVsSAnZWagAAjeAP/0vScIRRryPQ2yHuadCc\nJXNS9/3AavtnA1ljF9XwceCTh8heBA8eTAQ6rTg1PZOTkZqoOVfn4ndhMRlb\nZgitAuvlm+FTBoPzJMy+wlIBCbyJNHW69fiu8x0icie+Gsn7odSmkSUvT8bL\nh+R63VTpb9M5QBW6xX3ZWAJDA0c4jp3lXdwfC03Y8aMHfXcgS9+CCgwHG7lu\nQnOeSKvAYKSf1xEeIoHapUeuz561lgo2nGskDMkHWQSQ6/AtYFOAywTC9MtR\ndJT/Uk0WeR2SquB6NJ7ED0SuY7hnkKa0MlykZ8dOb2s2ypcb+f/fblux1CR+\np4BSQY3vlPQYH7uSQ+4RWL8kqgrJ32VVhhfA9aBa+At0R6BWCxk4Z5FzBFb6\nfiy6z27v20RysvukYdZcENfldLZ/PrmBe3ZExSLjkrJJrZSrvlc06gfgG4VJ\nv3u2/7yn856X71U9feG0wWuILuwnPPXWMiqujR0HY7Q+ExIyVJYDwSosQI8u\nzwl5v2oXPmnmbZh1hXkm3agSge1j0Ho99Hhp/FIxxDxyLPlniviFeyQikRRC\nZHydkp3m/YRqCy+TRtNoTIkpsufzteZvLoR1FGK2m/Nwtv42LgaSU+qUMsL8\nBboJCVs3LirnCAgAbpD1HLZlvA6pdfY0Ln/W1HKc86VGirVA2d6BKbKOzyCo\nc3mt\r\n=h/nQ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","name":"@uni/clipboard","unpkg":"index.umd.js","author":{"name":"rax"},"module":"index.es.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","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":"bunko","email":"2leg@immaster.cn"}],"_nodeVersion":"14.4.0","dependencies":{"@babel/runtime-corejs3":"^7.11.0"},"_hasShrinkwrap":false,"readmeFilename":"README.en-US.md","peerDependencies":{"@uni/env":"^1.0.0-beta"},"_npmOperationalInternal":{"tmp":"tmp/clipboard_1.0.0-beta1_1614344001014_0.9156644769804321","host":"s3://npm-registry-packages"},"_id":"@uni/clipboard@1.0.0-beta1","version":"1.0.0-beta1"}