tiny-copy

1.0.0 • Public • Published

tiny-copy

A tiny tool to copy text content.

Install

npm install --save tiny-copy
 
# or 
yarn add tiny-copy

Or just add a script tag in you html:

<script src="https://unpkg.com/tiny-copy"></script>

Usage

const tinyCopy = require('tiny-copy')
 
// Copy from an HTML element
tinyCopy(document.getElementById('my-rich-text'))
 
// Copy custom text content (raw text)
tinyCopy('some text...')

Readme

Keywords

none

Package Sidebar

Install

npm i tiny-copy

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • wemlion