Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/afeiship/next-to-clipboard
Copy text to clipboard.
https://github.com/afeiship/next-to-clipboard
clipboard copy execcommand next
Last synced: 11 days ago
JSON representation
Copy text to clipboard.
- Host: GitHub
- URL: https://github.com/afeiship/next-to-clipboard
- Owner: afeiship
- License: mit
- Created: 2018-08-13T15:21:02.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-09-15T06:39:06.000Z (over 1 year ago)
- Last Synced: 2024-11-15T08:04:44.019Z (about 1 month ago)
- Topics: clipboard, copy, execcommand, next
- Language: JavaScript
- Size: 26.4 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# next-to-clipboard
> Copy text to clipboard.[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]## installation
```bash
npm install -S @jswork/next-to-clipboard
```## usage
```js
import '@jswork/next-to-clipboard';document.getElementById('btn').onclick = function() {
nx.toClipboard('TEXT_FEI' + Math.random());
};
```## license
Code released under [the MIT license](https://github.com/afeiship/next-to-clipboard/blob/master/LICENSE.txt).[version-image]: https://img.shields.io/npm/v/@jswork/next-to-clipboard
[version-url]: https://npmjs.org/package/@jswork/next-to-clipboard[license-image]: https://img.shields.io/npm/l/@jswork/next-to-clipboard
[license-url]: https://github.com/afeiship/next-to-clipboard/blob/master/LICENSE.txt[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-to-clipboard
[size-url]: https://github.com/afeiship/next-to-clipboard/blob/master/dist/next-to-clipboard.min.js[download-image]: https://img.shields.io/npm/dm/@jswork/next-to-clipboard
[download-url]: https://www.npmjs.com/package/@jswork/next-to-clipboard