An open API service indexing awesome lists of open source software.

https://github.com/kitze/copy-lite

Copy to clipboard function with no dependencies
https://github.com/kitze/copy-lite

Last synced: about 1 year ago
JSON representation

Copy to clipboard function with no dependencies

Awesome Lists containing this project

README

          

Zero To Shipped

# copy-lite

`import {copyToClipboard} from 'copy-lite'`

## API
`copyToClipboard(content: string, richHtml: boolean)`

## Examples

### Text

`copyToClipboard('This is normal text')`

### Rich text

`copyToClipboard('This text has a bold element and a link', true)`