Skip to content

mrzhouxl/copy_txt

Repository files navigation

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

About

一款拷贝标签内容的小工具

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published