0.1.4 • Published 3 years ago

copy-txt v0.1.4

Weekly downloads
3
License
MIT
Repository
github
Last release
3 years ago

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

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago