UNPKG

mitt-react

Version:

Lightweight utility for integrating mitt with React

80 lines (79 loc) 2.16 kB
{ "name": "mitt-react", "private": false, "version": "2.1.0", "description": "Lightweight utility for integrating mitt with React", "license": "MIT", "type": "module", "main": "dist/mitt-react.cjs", "module": "dist/mitt-react.js", "exports": { ".": { "import": "./dist/mitt-react.js", "require": "./dist/mitt-react.cjs" } }, "files": [ "dist" ], "repository": { "type": "git", "url": "git+https://github.com/svnrnns/mitt-react.git" }, "keywords": [ "react", "react-hooks", "event-emitter", "mitt", "event-management", "react-events", "event-subscription", "event-handling", "react-functional-components", "mitt-integration", "event-listener-hook", "react-utility", "react-event-emitter", "event-emitters-in-react", "react-hook-for-events", "event-management-library" ], "bugs": { "url": "https://github.com/svnrnns/mitt-react/issues" }, "homepage": "https://github.com/svnrnns/mitt-react", "author": "seven rings (https://twitter.com/svnrnns)", "scripts": { "dev": "vite build --watch", "build": "vite build", "clean": "rm -rf dist", "prepublishOnly": "npm run clean && npm run build", "preview": "vite preview", "test": "vitest run", "test:verbose": "vitest run --reporter=verbose", "test:watch": "vitest", "test:coverage": "vitest run --coverage" }, "dependencies": { "@vitejs/plugin-react": "^4.3", "mitt": "^3", "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" }, "peerDependencies": { "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" }, "devDependencies": { "@testing-library/react": "^16.3.1", "@types/react": "^19.0.0", "happy-dom": "^20.0.11", "typescript": "^5.8", "vite": "^7", "vite-plugin-dts": "^2.3", "vitest": "^4.0.15" }, "optionalDependencies": { "@rollup/rollup-linux-x64-gnu": "4.9.5" } }