Skip to content
/ clip-it Public
forked from Dafrok/clip-it

A totally easy way for modern browsers to put something into clipboard.

License

Notifications You must be signed in to change notification settings

Gerhut/clip-it

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clip-it

A totally easy way for modern browsers to put something into clipboard.

Install

$ npm i --save clip-it

Usage

ATTENTION: The clip-it API must be triggered in the same callstack with a trusted event.

HTML

<button>COPY</button>

JavaScript

import clipIt from 'clip-it'

const $btn = document.querySelector('button')
$btn.addEventListner('click', e => clipIt('Hello world!'))

About

A totally easy way for modern browsers to put something into clipboard.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%