copy-txt
v0.1.4
Published
This is a tool for copying text
Downloads
7
Readme
copy-txt
一款可以用来复制任何标签的内容,和自定义文本
使用
$ npm install copy-txt
用法
const copy = require('copy-txt');
or
import copy from 'copy-txt'
浏览器使用
<script src="./index.js" type="text/javascript"></script>
API
copy(text|'#xxx',regex):Boolean
text 可以是你自定义的文本,也可以是标签里面的,如果是标签,需要使用id选择器进行选择 regex 是正则过滤
copy-txt
One can be used to copy the content of any label, and custom text
Install
$ npm install copy-txt
Usage
const copy = require('copy-txt');
or
import copy from 'copy-txt'
Browser use
<script src="./index.js" type="text/javascript"></script>
API
copy(text|'#xxx',regex):Boolean
text can be the text you want to copy or id selector