pastrami
Functional Cross-browser Clipboard Pastin' Never Tasted So Good 😋
Install
npm i -S pastrami
Usage
Paste Here
const run =
Why
- Needed a way to interact with ClipboardEvent
- Cross Browser Friendly
Demo
API
pastrami(element)
Returns a function with the result from clipboard
element
Type: Element
DOM Element with a contenteditable attribute
Supported Browsers
- Chrome 59/61
- Firefox 53
- Safari 10
- IE 11/Edge
TODO
- Add Tests
- Test in IE