# copy-text-to-clipbord

> A tiny tool for copying text in a h5 page

Latest version **0.0.3** (published 2018-10-12) · ISC license · 0 weekly downloads

## Install

```sh
npm install copy-text-to-clipbord
pnpm add copy-text-to-clipbord
yarn add copy-text-to-clipbord
bun add copy-text-to-clipbord
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2018-10-12 |
| First published | 2018-10-12 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | coypan |
| Maintainers | coypan |
| Keywords | h5, copy, js, clipbord |

## Links

- npm: https://www.npmjs.com/package/copy-text-to-clipbord
- Repository: https://github.com/CoyPan/tinny-copy
- Homepage: https://github.com/CoyPan/tinny-copy#readme
- Issues: https://github.com/CoyPan/tinny-copy/issues
- npm.io page: https://npm.io/package/copy-text-to-clipbord

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 0.0.3 (latest) — 2018-10-12

## README

# copy-text-to-clipbord
A tiny copy tool for copying text in a h5 page

# install 
```
npm install copy-text-to-clipbord --save
```
# usage example
```
/html
<div id='clkBtn'></div>

/js
var TinyCopy = require('copy-text-to-clipbord');
var copyAction = new TinyCopy({
  selectText:'hehe'
});
copyAction.on('sucess',function(e){
  console.log('success', e.selextText); // 'success hehe'
});
copyAction.on('fail',function(){
  console.log('fail');
});

document.querySelector('#clkBtn').addEventListener('click',function(){
  copyAction.copy();
});
```

---
_Source: https://npm.io/package/copy-text-to-clipbord · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
