Table of Contents
Puny 721 byte copy to clipboard library
Built with ❤︎ by Tiaan and contributors
Table of Contents
About
A puny 721 byte(gzipped & minified) copy to clipboard library. For modern browsers.
Install
With cdn:
<!-- Or -->
With Bower:
$ bower install clipd
With npm:
$ npm install --save clipd
With yarn:
$ yarn add clipd
Usage
// Works with a string selector or element node // OR const elem = document
API
The module exports a single function with signature:
Current available options:
event: 'click' // Event to trigger copy on. Default 'click {} // callback with the result of copy(boolean)
Example
Check out the example directory.
Contribute
Contributions are welcome. Please open up an issue or create PR if you would like to help out.
Note: If editing the README, please conform to the standard-readme specification.
License
Licensed under the MIT License.