UNPKG

preact-missing-hooks

Version:

A lightweight, extendable collection of missing React-like hooks for Preact — plus fresh, powerful new ones designed specifically for modern Preact apps.

59 lines (58 loc) 1.51 kB
{ "name": "preact-missing-hooks", "version": "1.0.2", "description": "A lightweight, extendable collection of missing React-like hooks for Preact — plus fresh, powerful new ones designed specifically for modern Preact apps.", "author": "Prakhar Dubey", "license": "MIT", "main": "dist/index.js", "module": "dist/index.module.js", "types": "dist/index.d.ts", "source": "src/index.ts", "exports": { ".": { "import": "./dist/index.module.js", "require": "./dist/index.js", "types": "./dist/index.d.ts" }, "./useTransition": { "import": "./dist/useTransition.module.js", "require": "./dist/useTransition.js", "types": "./dist/useTransition.d.ts" } }, "scripts": { "build": "microbundle", "dev": "microbundle watch", "prepublishOnly": "npm run build", "test": "vitest run", "type-check": "tsc --noEmit" }, "keywords": [ "preact", "hooks", "usetransition", "react-hooks", "microbundle", "typescript", "preact-hooks" ], "repository": { "type": "git", "url": "https://github.com/prakhardubey2002/Preact-Missing-Hooks" }, "dependencies": { "preact": ">=10.0.0" }, "devDependencies": { "@testing-library/jest-dom": "^6.6.3", "@testing-library/preact": "^3.2.4", "@types/jest": "^29.5.14", "jsdom": "^26.1.0", "microbundle": "^0.15.1", "typescript": "^5.8.3", "vitest": "^3.1.4" }, "peerDependencies": { "preact": ">=10.0.0" } }