UNPKG

use-app-events

Version:

Create custom events and reactive variables in vanilla JavaScript and React.

100 lines 2.63 kB
{ "name": "use-app-events", "version": "1.8.0", "author": "Maksym Marchuk", "license": "MIT", "description": "Create custom events and reactive variables in vanilla JavaScript and React.", "module": "./dist/index.js", "types": "./dist/index.d.ts", "type": "module", "engines": { "node": "^18.0.0 || ^20.0.0 || ^22.0.0" }, "repository": "github:aimtbr/use-app-events", "peerDependencies": { "react": "^17.0.0 || ^18.0.0 || ^19.0.0", "react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0" }, "devDependencies": { "@babel/core": "^7.29.0", "@babel/preset-env": "^7.29.2", "@babel/preset-react": "^7.28.5", "@babel/preset-typescript": "^7.28.5", "@eslint/js": "^10.0.1", "@testing-library/dom": "^10.4.1", "@testing-library/react": "^16.3.2", "@types/jest": "^30.0.0", "@types/react": "^19.2.14", "@types/react-dom": "^19.2.3", "@vitejs/plugin-react": "^6.0.1", "babel-jest": "^30.3.0", "babel-preset-vite": "^1.1.3", "eslint": "^10.0.3", "eslint-plugin-no-barrel-files": "^1.2.2", "eslint-plugin-react": "^7.37.5", "eslint-plugin-react-hooks": "^7.0.1", "eslint-plugin-react-refresh": "^0.5.2", "globals": "^17.4.0", "jest": "^30.3.0", "jest-environment-jsdom": "^30.3.0", "react-test-renderer": "^19.2.4", "ts-jest": "^29.4.6", "ts-node": "^10.9.2", "typescript": "^5.9.3", "typescript-eslint": "^8.57.1", "vite": "^8.0.0", "vite-plugin-dts": "^4.5.4" }, "files": [ "dist" ], "main": "./dist/index.js", "exports": { ".": { "import": "./dist/index.js" }, "./listenForEvents": { "import": "./dist/lib/listenForEvents.js" }, "./notifyEventListeners": { "import": "./dist/lib/notifyEventListeners.js" }, "./useAppEvents": { "import": "./dist/lib/useAppEvents/useAppEvents.js" }, "./useGlobal": { "import": "./dist/lib/useGlobal/useGlobal.js" }, "./options": { "import": "./dist/lib/options.js" }, "./heap": { "import": "./dist/lib/heap.js" } }, "keywords": [ "events", "event", "emit", "trigger", "EventEmitter", "Event", "CustomEvent", "event-emitter", "listener", "event-dispatcher", "react", "listen", "send", "receive" ], "scripts": { "dev": "vite", "prod": "vite --mode production", "build": "pnpm test && pnpm lint && tsc -b && vite build", "lint": "eslint .", "test": "jest", "coverage": "jest --collectCoverage", "publish:npm": "git push origin HEAD && pnpm build && pnpm publish" } }