# tinny-copy

> A tiny tool for copying text in a h5 page

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

## Install

```sh
npm install tinny-copy
pnpm add tinny-copy
yarn add tinny-copy
bun add tinny-copy
```

## 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.2 |
| Published | 2018-10-12 |
| First published | 2018-03-23 |
| 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 |

## Links

- npm: https://www.npmjs.com/package/tinny-copy
- 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/tinny-copy

## 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.2 (latest) — 2018-10-12
- 0.0.1 — 2018-03-23

## README

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

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

/js
var TinyCopy = require('tinny-copy');
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/tinny-copy · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
