Gathering detailed insights and metrics for copy-to-clipboard-ultralight
Gathering detailed insights and metrics for copy-to-clipboard-ultralight
Gathering detailed insights and metrics for copy-to-clipboard-ultralight
Gathering detailed insights and metrics for copy-to-clipboard-ultralight
A 🚀 light-weight tool focus on copy string to clipboard.
npm install copy-to-clipboard-ultralight
Typescript
Module System
Node Version
NPM Version
69.9
Supply Chain
90.4
Quality
75.7
Maintenance
100
Vulnerability
99.6
License
JavaScript (48.64%)
HTML (33.95%)
TypeScript (17.41%)
Total Downloads
44,062
Last Day
1
Last Week
26
Last Month
467
Last Year
6,337
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.15
Package Id
copy-to-clipboard-ultralight@1.0.15
Unpacked Size
19.33 kB
Size
7.24 kB
File Count
18
NPM Version
8.1.2
Node Version
16.13.1
Cumulative downloads
Total Downloads
Last Day
0%
1
Compared to previous day
Last Week
-62.3%
26
Compared to previous week
Last Month
5.7%
467
Compared to previous month
Last Year
-38.2%
6,337
Compared to previous year
Language : English | 中文
🚀 A ultralight tool ( 596Byte ) that can copy a string to system clipboard.
💫 Wide browser support, for example IE >= 9.
📦 UMD module & ESModule, offer .d.ts file to support Typescript.
npm i copy-to-clipboard-ultralight
function ultralightCopy(sourceStr: string): boolean
Check demo.html
in Git for more detail.
1import ultralightCopy from 'copy-to-clipboard-ultralight'; 2// const ultralightCopy = require('copy-to-clipboard-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-clipboard-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 browser like Chrome, Edge, safari, IE >= 10, etc.
I suggest you to run Online demo in your target browser, or 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
Found 0/30 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
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
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
33 existing vulnerabilities detected
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