All Projects → ngneat → Copy To Clipboard

ngneat / Copy To Clipboard

Licence: mit
✂️ Modern copy to clipboard. No Flash.

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Copy To Clipboard

Xcv
✂️ Cut, Copy and Paste files with Bash
Stars: ✭ 144 (+269.23%)
Mutual labels:  copy, clipboard
Vue Clipboard2
A simple vue2 binding to clipboard.js
Stars: ✭ 1,617 (+4046.15%)
Mutual labels:  copy, clipboard
Clipboard Copy
Lightweight copy to clipboard for the web
Stars: ✭ 443 (+1035.9%)
Mutual labels:  copy, clipboard
Gotem
Copy to clipboard for modern browsers in less than 1kb.
Stars: ✭ 439 (+1025.64%)
Mutual labels:  copy, clipboard
v-copy
Vue directive to copy to clipboard. (1kB)
Stars: ✭ 88 (+125.64%)
Mutual labels:  clipboard, copy
Piknik
Copy/paste anything over the network.
Stars: ✭ 2,221 (+5594.87%)
Mutual labels:  copy, clipboard
Copy Paths To Clipboard
Copy paths in a variety of formats to the clipboard with Alfred
Stars: ✭ 83 (+112.82%)
Mutual labels:  copy, clipboard
MagicWE2
[MagicWE2] Lag free asynchronous world editor for PMMP with plenty of options
Stars: ✭ 109 (+179.49%)
Mutual labels:  clipboard, copy
netflix-list-exporter
💫‎‎‎‏‏‎ An Extension to export your lists from Netflix to Clipboard area and share it with your friends.
Stars: ✭ 60 (+53.85%)
Mutual labels:  clipboard, copy
Clipboard Polyfill
📋 Simple copying on the web, with maximum browser compatibility.
Stars: ✭ 748 (+1817.95%)
Mutual labels:  copy, clipboard
Wl Clipboard
Command-line copy/paste utilities for Wayland
Stars: ✭ 467 (+1097.44%)
Mutual labels:  clipboard
Onequick.ahk Legacy
windows快捷键工具(屏幕边缘操作, 剪贴板增强). Autohotkey tool (screen border operation, clipboard manager).
Stars: ✭ 471 (+1107.69%)
Mutual labels:  clipboard
Clipboard
clipboard for golang
Stars: ✭ 720 (+1746.15%)
Mutual labels:  clipboard
Fcfilemanager
iOS File Manager on top of NSFileManager for simplifying files management. 📂
Stars: ✭ 862 (+2110.26%)
Mutual labels:  copy
Datapasta
On top of spaghetti, all covered in cheese....
Stars: ✭ 704 (+1705.13%)
Mutual labels:  clipboard
Gpaste
Clipboard management system
Stars: ✭ 465 (+1092.31%)
Mutual labels:  clipboard
Clipper
✂️ Clipboard access for local and remote tmux sessions
Stars: ✭ 439 (+1025.64%)
Mutual labels:  clipboard
Ngx Clipboard
A pure angular clipboard directive
Stars: ✭ 440 (+1028.21%)
Mutual labels:  clipboard
Clipboard.js
✂️ Modern copy to clipboard. No Flash. Just 3kb gzipped 📋
Stars: ✭ 31,525 (+80733.33%)
Mutual labels:  clipboard
Unicopy
Unicode command-line codepoint dumper
Stars: ✭ 16 (-58.97%)
Mutual labels:  clipboard


MIT commitizen PRs styled with prettier All Contributors ngneat spectator

✂️ Modern copy to clipboard. No Flash.

Simple module exposing a directive that'll try to use execCommand with fallback to IE-specific clipboardData interface and finally, resort to usual prompt with proper text content and message.

Buy Me A Coffee

Installation

ng add @ngneat/copy-to-clipboard

Usage

When an element that contains copyToClipboard directive is clicked, the value of copyToClipboard will be copied into the clipboard.

<button copyToClipboard="Copy this text to clipboard">Copy</button>
<button [copyToClipboard]="property">Copy</button>

You can add a global function that'll be called on copy:

import { CopyToClipboardModule, COPY_TO_CLIPBOARD_HANDLER } from '@ngneat/copy-to-clipboard';

@NgModule({
  declarations: [AppComponent],
  imports: [BrowserModule, CopyToClipboardModule],
  providers: [
    {
      provide: COPY_TO_CLIPBOARD_HANDLER,
      useFactory(toaster: ToasterService) {
        return function(text) {
          toaster.success('Copied..');
        };
      },
      deps: [ToasterService]
    }
  ],
  bootstrap: [AppComponent]
})
export class AppModule {}

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Netanel Basal

💻

This project follows the all-contributors specification. Contributions of any kind welcome!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].