Gathering detailed insights and metrics for copy-to-clipbord-ultralight
Gathering detailed insights and metrics for copy-to-clipbord-ultralight
Gathering detailed insights and metrics for copy-to-clipbord-ultralight
Gathering detailed insights and metrics for copy-to-clipbord-ultralight
A 🚀 light-weight tool focus on copy string to clipboard.
npm install copy-to-clipbord-ultralight
Typescript
Module System
Node Version
NPM Version
69.5
Supply Chain
87.9
Quality
75.6
Maintenance
100
Vulnerability
99.6
License
JavaScript (48.64%)
HTML (33.95%)
TypeScript (17.41%)
Total Downloads
2,629
Last Day
1
Last Week
19
Last Month
39
Last Year
293
BSD-2-Clause License
5 Stars
84 Commits
2 Watchers
1 Branches
1 Contributors
Updated on Nov 23, 2024
Minified
Minified + Gzipped
Latest Version
1.0.8
Package Id
copy-to-clipbord-ultralight@1.0.8
Unpacked Size
15.38 kB
Size
6.35 kB
File Count
16
NPM Version
6.14.10
Node Version
12.18.3
Cumulative downloads
Total Downloads
Last Day
0%
1
Compared to previous day
Last Week
171.4%
19
Compared to previous week
Last Month
30%
39
Compared to previous month
Last Year
-8.4%
293
Compared to previous year
A 🚀 ultralight tool ( 596Byte ) that can copy a string to system clipboard.
⚠️ Only support modern browser.
🔑 UMD module & ESModule, offer .d.ts file to support Typescript.
npm i copy-to-clipbord-ultralight
function ultralightCopy(sourceStr: string): boolean
Check demo.html
in Git for more detail.
1import ultralightCopy from 'copy-to-clipbord-ultralight'; 2// const ultralightCopy = require('copy-to-clipbord-ultralight') // import as commonJS module 3 4document.querySelector('#test').addEventListener('click',()=> { 5 if (ultralightCopy('This is test string.')) { 6 alert('success !') 7 } else { 8 alert('copy failed !') 9 } 10})
1<script src="https://cdn.jsdelivr.net/npm/copy-to-clipbord-ultralight"></script> 2<script> 3 document.querySelector('#test').addEventListener('click',()=> { 4 if (ultralightCopy('This is test string.')) { 5 alert('success !') 6 } else { 7 alert('copy failed !') 8 } 9 }) 10</script>
We would try to use document.execCommand('copy')
with NO FALLBACK. So this tool only support modern browser like Chrome, Edge, safari, etc.
You can check compatibility here https://caniuse.com/?search=execCommand%3A%20copy%20command
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
no SAST tool detected
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
32 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-02
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