icecreamliker / clipboard-plus

Copy texts to clipboard via JavaScript (ES6)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

clipboard-plus

Copy texts to clipboard via JavaScript (ES6)

Installation

  $ npm install clipboard-plus

Usage

Add the paths to configuration:

  const copy = require('clipboard-copy');
  let node = document.querySelector('#content');
  copy(node);

or

  const copy = require('clipboard-copy');
  copy('this is the copied content');

License

clipboard-plus is available under the terms of the MIT license.

About

Copy texts to clipboard via JavaScript (ES6)

License:MIT License


Languages

Language:JavaScript 100.0%