Socket
Socket
Sign inDemoInstall

copy-to-clipboard-ultralight

Package Overview
Dependencies
0
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.2 to 1.0.8

dist/index.esm.js

9

package.json
{
"name": "copy-to-clipboard-ultralight",
"version": "1.0.2",
"version": "1.0.8",
"description": "Copy text to clipboard, only support modern browser.",

@@ -10,3 +10,4 @@ "repository": {

"main": "dist/index.js",
"types": "./dist/index.d.ts",
"types": "dist/index.d.ts",
"module": "dist/index.esm.js",
"scripts": {

@@ -23,3 +24,5 @@ "build": "rollup -c",

"keywords": [
"clipboard"
"clipboard",
"copy",
"browser"
],

@@ -26,0 +29,0 @@ "author": "Old_dream",

# copy-to-clipboard-ultralight
![](https://travis-ci.org/OldDream/copy-to-clipbord-ultralight.svg?branch=main)
![](https://travis-ci.org/OldDream/copy-to-clipboard-ultralight.svg?branch=main)

@@ -9,3 +9,3 @@ A 🚀 ultralight tool ( **596Byte** ) that can copy a string to system clipboard.

🔑 UMD module, offer .d.ts file to support Typescript.
🔑 UMD module & ESModule, offer .d.ts file to support Typescript.

@@ -67,5 +67,5 @@

You can check compatibility here https://caniuse.com/?search=execCommand
You can check compatibility here https://caniuse.com/?search=execCommand%3A%20copy%20command

@@ -14,3 +14,3 @@ import path from 'path';

{
// 编译typescript, 生成 js 文件
// 编译typescript, 生成 js 文件,UMD格式
input: resolve('./src/index.ts'),

@@ -34,2 +34,20 @@ output: {

{
// 编译typescript, 生成 js 文件, ES6Module 格式
input: resolve('./src/index.ts'),
output: {
file: resolve('./', pkg.module), // 读取 package.json 中的main作为入口。
format: 'esm',
},
plugins: [
nodeResolve({
extensions,
}),
babel({
exclude: 'node_modules/**',
extensions,
}),
terser()
],
},
{
// 生成 .d.ts 类型声明文件

@@ -36,0 +54,0 @@ input: resolve('./src/index.ts'),

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc