From 9df7d1b20c870909ce9ea4f8c41ef4a51486b433 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=98=98?= Date: Fri, 26 Jul 2024 22:07:16 +0800 Subject: [PATCH] :busts_in_silhouette: --- LICENSE | 21 +++++++++++++++++++++ package.json | 16 +++++++++++++++- readme.md | 6 ++++++ 3 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..4afbaf7 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2024 mowtwo + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/package.json b/package.json index 2fb27d6..b7f10ea 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,25 @@ { "name": "@holy-two/anchor-proxy", - "version": "0.0.1", + "description": "透過 WebComponent 對所有的 a 標簽進行代理事件及攔截", + "version": "0.0.2", "type": "module", "files": [ "dist" ], "main": "./dist/index.js", + "repository": { + "type": "git", + "url": "git+https://github.com/holy-two/anchor-proxy.git" + }, + "keywords": [ + "webcomponents", + "event-delegation" + ], + "author": "mowtwo", + "license": "MIT", + "bugs": { + "url": "https://github.com/holy-two/anchor-proxy/issues" + }, "scripts": { "build": "tsup", "preview": "start http://127.0.0.1:8000/example/ && python -m http.server" diff --git a/readme.md b/readme.md index 102b0db..c5364f7 100644 --- a/readme.md +++ b/readme.md @@ -2,6 +2,12 @@ 透過 WebComponent 封裝的一個對所有的 `a` 標簽進行代理事件及攔截的功能 +## 安裝 + +```bash +pnpm i @holy-two/anchor-proxy +``` + ## 基本 ```html