tiny-event-intercept
Version:
Lightweight (~1.0KB) TypeScript library for conditional event interception with browser-standard API. Zero dependencies, SSR compatible, robust edge case handling.
94 lines (93 loc) • 2.63 kB
JSON
{
"name": "tiny-event-intercept",
"version": "1.0.0",
"description": "Lightweight (~1.0KB) TypeScript library for conditional event interception with browser-standard API. Zero dependencies, SSR compatible, robust edge case handling.",
"main": "./dist/main.js",
"module": "./dist/main.mjs",
"types": "./dist/main.d.ts",
"exports": {
".": {
"import": "./dist/main.mjs",
"require": "./dist/main.js"
},
"./package.json": "./package.json"
},
"files": [
"dist",
"README.md",
"README_zh-CN.md",
"LICENSE"
],
"scripts": {
"test": "vitest run",
"test:coverage": "vitest run --coverage",
"lint": "oxlint",
"build": "tsdown",
"bench": "vitest bench --run",
"prepare": "simple-git-hooks install",
"typecheck": "tsc --noEmit",
"format": "prettier --write .",
"lint-staged": "lint-staged",
"changelog": "conventional-changelog -p conventionalcommits -i CHANGELOG.md -s",
"changelog:full": "conventional-changelog -p conventionalcommits -i CHANGELOG.md -s -r 0",
"prepublishOnly": "pnpm run typecheck && pnpm run lint && pnpm run test && pnpm run build",
"publish:dry": "npm publish --dry-run"
},
"keywords": [
"event-intercept",
"event-listener",
"conditional-events",
"event-handling",
"typescript",
"javascript",
"dom-events",
"lightweight",
"zero-dependencies",
"ssr-compatible",
"browser",
"react",
"vue",
"frontend",
"memory-safe",
"robust",
"edge-cases"
],
"author": {
"name": "crper",
"email": "crper@outlook.com",
"url": "https://github.com/crper/tiny-event-intercept"
},
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/crper/tiny-event-intercept.git"
},
"bugs": {
"url": "https://github.com/crper/tiny-event-intercept/issues"
},
"homepage": "https://github.com/crper/tiny-event-intercept#readme",
"engines": {
"node": ">=18.0.0"
},
"sideEffects": false,
"devDependencies": {
"@commitlint/cli": "^19.8.1",
"@commitlint/config-conventional": "^19.8.1",
"@vitest/coverage-v8": "^3.2.4",
"conventional-changelog-cli": "^5.0.0",
"conventional-changelog-conventionalcommits": "^9.1.0",
"jsdom": "^26.1.0",
"oxlint": "^1.7.0",
"pnpm": "^10.13.1",
"prettier": "^3.6.2",
"simple-git-hooks": "^2.13.0",
"tsdown": "^0.12.9",
"tsx": "^4.20.3",
"typescript": "^5.8.3",
"vitest": "^3.2.4"
},
"simple-git-hooks": {
"pre-commit": "npx --no lint-staged",
"commit-msg": "npx --no commitlint --edit \"$1\""
}
}