1.1.0 • Published 1 year ago

@kanety/pick-text v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

pick-text

Select and copy text from html element.

Installation

Install from npm:

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

Usage

<div id="target">sample text</div>
import PickText from '@kanety/pick-text';
PickText.run('#target');

Options

Disable copy:

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

License

The library is available as open source under the terms of the MIT License.