JSPM

clipboard-plus

1.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 153
  • Score
    100M100P100Q60994F
  • License MIT

Copy texts to clipboard via JavaScript (ES6)

Package Exports

  • clipboard-plus

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (clipboard-plus) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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.