@kcuf-hook/use-debounced
Version:
React hook - useDebounced/useThrottled.
78 lines • 2.45 kB
JSON
{
"name": "@kcuf-hook/use-debounced",
"version": "0.0.1",
"description": "React hook - useDebounced/useThrottled.",
"keywords": [
"react",
"hook",
"debounce",
"throttle",
"useDebouncedCallback",
"useDebouncedValue",
"useThrottledCallback",
"useThrottledValue"
],
"license": "MIT",
"sideEffects": false,
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/types/index.d.ts",
"repository": {
"type": "git",
"url": "git+https://github.com/justnewbee/kcuf.git"
},
"homepage": "https://github.com/justnewbee/kcuf/tree/master/packages-hook/use-debounced",
"bugs": "https://github.com/justnewbee/kcuf/issues",
"author": {
"name": "Jianchun Wang",
"email": "justnewbee@gmail.com"
},
"publishConfig": {
"access": "public"
},
"devDependencies": {
"@babel/cli": "^7.26.4",
"@babel/core": "^7.26.10",
"@babel/plugin-transform-runtime": "^7.26.10",
"@babel/preset-env": "^7.26.9",
"@babel/preset-react": "^7.26.3",
"@babel/preset-typescript": "^7.26.0",
"@chromatic-com/storybook": "^3.2.5",
"@storybook/addon-essentials": "^8.6.4",
"@storybook/addon-interactions": "^8.6.4",
"@storybook/addon-links": "^8.6.4",
"@storybook/addon-onboarding": "^8.6.4",
"@storybook/blocks": "^8.6.4",
"@storybook/react": "^8.6.4",
"@storybook/react-vite": "^8.6.4",
"@storybook/test": "^8.6.4",
"@types/react": "^18.3.18",
"@vitest/coverage-v8": "^3.0.8",
"react": "^18.3.1",
"rimraf": "^6.0.1",
"storybook": "^8.6.4",
"typescript": "^5.8.2",
"vitest": "^3.0.8",
"@kcuf/ts-config": "^0.0.1",
"@kcuf/demo-rc": "^0.3.3"
},
"peerDependencies": {
"@babel/runtime": "^7.x",
"react": "^18.x"
},
"dependencies": {
"@kcuf-hook/use-is-unmounted": "^0.0.1"
},
"scripts": {
"start": "storybook dev -p 6006",
"build:clean": "rimraf dist",
"build:esm": "ESM=1 babel src -d dist/esm --extensions .ts,.tsx --source-maps",
"build:cjs": "ESM=0 babel src -d dist/cjs --extensions .ts,.tsx",
"build:types": "tsc -rootDir src --outDir dist/types --declaration --noEmit false --emitDeclarationOnly --isolatedModules false",
"build:sb": "storybook build",
"build": "pnpm build:esm && pnpm build:cjs && pnpm build:types",
"watch": "pnpm build:esm -w",
"test": "vitest",
"test:cov": "vitest --coverage --coverage.include=src"
}
}