clippie
![](https://img.shields.io/bundlephobia/minzip/clippie.svg)
clippie
copies text and blobs to clipboard in Browsers. It relies on modern APIs that require a secure origin but also includes a fallback so it works on insecure origins.
Usage
import {clippie} from "clippie";
const success = await clippie("text to copy");
const success = await clippie(new Blob("text to copy"), "text/plain");
API
clippie(content)
content
String or Blob: Content to copy.
Returns true
when sucessful. Will throw all exceptions except when it falls back to another method.
© silverwind, distributed under BSD licence