UNPKG

@georapbox/clipboard-copy-element

Version:

A custom element that implements the Clipboard API to copy text content from elements or input values to the clipboard.

65 lines (64 loc) 2.01 kB
{ "name": "@georapbox/clipboard-copy-element", "version": "3.0.2", "description": "A custom element that implements the Clipboard API to copy text content from elements or input values to the clipboard.", "main": "dist/clipboard-copy.js", "module": "dist/clipboard-copy.js", "unpkg": "dist/clipboard-copy.js", "type": "module", "files": [ "/src", "/dist" ], "scripts": { "lint": "eslint", "format": "prettier --ignore-unknown --write .", "test": "web-test-runner", "test:watch": "npm run test -- --watch", "test:coverage": "npm run test -- --coverage", "types": "tsc --project tsconfig.json", "dev:esbuild": "node ./scripts/dev.mjs", "dev": "npm-run-all clean dev:esbuild", "serve:dev": "web-dev-server --node-resolve --open /docs/ --watch", "start": "npm-run-all --parallel \"serve:dev -- {1}\" dev", "build:esbuild": "node ./scripts/build.mjs", "build": "npm-run-all clean build:esbuild", "clean": "rimraf dist", "prepare": "npm-run-all clean lint test build types" }, "keywords": [ "custom element", "web component", "clipboard-copy" ], "author": { "name": "George Raptis", "email": "georapbox@gmail.com" }, "repository": { "type": "git", "url": "git+https://github.com/georapbox/clipboard-copy-element.git" }, "license": "MIT", "bugs": { "url": "https://github.com/georapbox/clipboard-copy-element/issues" }, "homepage": "https://github.com/georapbox/clipboard-copy-element#readme", "devDependencies": { "@eslint/js": "~9.9.0", "@esm-bundle/chai": "~4.3.4-fix.0", "@open-wc/testing": "~4.0.0", "@web/dev-server": "~0.4.6", "@web/test-runner": "~0.18.3", "@web/test-runner-playwright": "~0.11.0", "esbuild": "~0.23.1", "eslint": "~9.9.0", "eslint-plugin-wc": "~2.1.1", "globals": "~15.9.0", "npm-run-all": "~4.1.5", "prettier": "~3.3.3", "rimraf": "~6.0.1", "sinon": "~18.0.0", "typescript": "~5.5.4" } }