Copy to Clipboard with clipboard.js
Clipboard.js is a lightweight JavaScript tool that allows you to easily copy text to the user's clipboard without using Flash.
- •When you need to provide a simple way for users to copy text, such as a password or a coupon code.
- •When you want to enhance the user experience by reducing the number of steps required to copy text.
- •When you need to support older browsers that do not have native copy to clipboard functionality.
new ClipboardJS('.btn', { text: function() { return 'Hello, ' + document.getElementById('name').value; } });Skip the builder — one click puts this in Claude, Cursor, Antigravity and more.
Installs with a command or two; your AI agent can do it for you.
mkdir -p ~/.claude/skills/clipboard-js && curl -fsSL https://workflowstacks.com/api/skills/clipboard-js/claude-skill -o ~/.claude/skills/clipboard-js/SKILL.mdOpens the app with this repo with the prompt ready to go — no copy-paste needed.
Copy to Clipboard with clipboard.js is a tiny JavaScript project (~350 lines across 11 code files, plus 6 test files). Setup is light: installs like a normal app. Reading the code is optional. Last commit 6 months ago, MIT license, has a test suite.
- 1readme.mdStart here — what it does and how to install it
- 2composer.jsonDependencies and the commands it exposes
- 3src/clipboard.d.tsInside src/ — the main logic begins here
- 4demo/constructor-node.htmlA worked example — copy this to get going
Skip the builder — one click puts this in Claude, Cursor, Antigravity and more.
Installs with a command or two; your AI agent can do it for you.
mkdir -p ~/.claude/skills/clipboard-js && curl -fsSL https://workflowstacks.com/api/skills/clipboard-js/claude-skill -o ~/.claude/skills/clipboard-js/SKILL.mdOpens the app with this repo with the prompt ready to go — no copy-paste needed.
Are you the creator of this tool? Claim your listing → and earn 85% of every sale.
Related skills
More ai-agent tools founders pair with this one.