@jswork/copy-selection-element
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

copy-selection-element

Copy html from selection element.

version license size download

installation

npm install @jswork/copy-selection-element

usage

import copySelectionElement from "@jswork/copy-selection-element";

const el = document.querySelector(".content");
const successful = copySelectionElement(el);

if (successful) {
  // do somthing...
}

license

Code released under the MIT license.

Package Sidebar

Install

npm i @jswork/copy-selection-element

Homepage

js.work

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

7 kB

Total Files

9

Last publish

Collaborators

  • afeiship