Skip to content

AngusFu/tiny-copy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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...')

About

A tiny tool to copy rich text

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published