1.0.9 • Published 7 years ago

pastrami v1.0.9

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

pastrami

Functional Cross-browser Clipboard Pastin' Never Tasted So Good :yum:

Install

npm i -S pastrami

Usage

<div contenteditable class="paste">Paste Here</div>
<div class="results"></div>
import { pastrami } from 'pastrami'

const run = pastrami(document.querySelector('.paste'))

run(img => document.querySelector('.results').appendChild(img))

Why

Demo

https://goo.gl/tDTBVS

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
1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago