Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kanety/pick-text


https://github.com/kanety/pick-text

Last synced: 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# pick-text

Select and copy text from html element.

## Installation

Install from npm:

$ npm install @kanety/pick-text --save

## Usage

```html

sample text

```

```javascript
import PickText from '@kanety/pick-text';
PickText.run('#target');
```

### Options

Disable copy:

```javascript
PickText.run('#target', { copy: false });
```

## License

The library is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).