Gathering detailed insights and metrics for @uni/clipboard
Gathering detailed insights and metrics for @uni/clipboard
Gathering detailed insights and metrics for @uni/clipboard
Gathering detailed insights and metrics for @uni/clipboard
npm install @uni/clipboard
Typescript
Module System
Node Version
NPM Version
TypeScript (89.79%)
JavaScript (10.21%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
270 Stars
550 Commits
63 Forks
17 Watchers
13 Branches
29 Contributors
Updated on Mar 17, 2025
Latest Version
1.0.9
Package Id
@uni/clipboard@1.0.9
Unpacked Size
174.65 kB
Size
27.02 kB
File Count
94
NPM Version
6.14.17
Node Version
14.20.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
1$ npm install @uni/clipboard --save
or
1$ npm install @uni/apis --save
1import { getClipboard } from '@uni/clipboard'; 2 3getClipboard({ 4 success (res){ 5 console.log(res.text); 6 } 7}); 8 9// promise 10getClipboard().then(res => { 11 console.log(res.text); 12}); 13
getClipboard()
Gets the content on the system clipboard.
Property | Type | Description | required | Default |
---|---|---|---|---|
options | object | ✔️ | - | |
options.success | Function | The callback function for a successful API call | ✘ | - |
options.fail | Function | The callback function for a failed API call | ✘ | - |
options.complete | Function | The callback function used when the API call completed (always executed whether the call succeeds or fails) | ✘ | - |
Property | Type | Description |
---|---|---|
res | object | |
res.text | string | The clipboard content |
Sets the content on the system clipboard.
1import { setClipboard } from '@uni/clipboard'; 2 3setClipboard({ 4 text: 'text', 5 success (res){ 6 console.log(res); 7 } 8}); 9 10// promise 11setClipboard({ 12 text: 'text' 13}).then(res => { 14 console.log(res); 15}); 16
Property | Type | Description | required | Default |
---|---|---|---|---|
options | object | ✔️ | - | |
options.text | string | The clipboard content | ✔️ | - |
options.success | Function | The callback function for a successful API call | ✘ | - |
options.fail | Function | The callback function for a failed API call | ✘ | - |
options.complete | Function | The callback function used when the API call completed (always executed whether the call succeeds or fails) | ✘ | - |
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
0 existing vulnerabilities detected
Reason
no binaries found in the repo
Reason
Found 27/28 approved changesets -- score normalized to 9
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
security policy file not detected
Details
Reason
license file not detected
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More