@guoyunhe/use-throttle-callback
Version:
Throttle callbacks for React
111 lines • 3.05 kB
JSON
{
"name": "@guoyunhe/use-throttle-callback",
"description": "Throttle callbacks for React",
"keywords": [
"react",
"react-hooks",
"callback",
"throttle",
"debounce",
"double-click"
],
"homepage": "https://github.com/guoyunhe/use-throttle-callback#readme",
"bugs": {
"url": "https://github.com/guoyunhe/use-throttle-callback/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/guoyunhe/use-throttle-callback.git"
},
"funding": "https://github.com/sponsors/guoyunhe",
"author": {
"name": "Guo Yunhe",
"email": "i@guoyunhe.me"
},
"type": "module",
"exports": {
".": {
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
}
},
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"dist",
"CHANGELOG.md",
"LICENSE",
"README.md"
],
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"lint-staged": {
"*.{cjs,cts,js,jsx,mjs,mts,ts,tsx,vue}": "eslint --fix",
"*.{css,less,scss}": "stylelint --fix",
"*.{cjs,css,cts,html,js,json,jsx,less,md,mjs,mts,scss,ts,tsx,vue,yaml,yml}": "prettier --write"
},
"prettier": "prettier-config-ali",
"stylelint": {
"extends": [
"stylelint-config-ali",
"stylelint-prettier/recommended"
]
},
"devDependencies": {
"@commitlint/cli": "^19.8.1",
"@commitlint/config-conventional": "^19.8.1",
"@guoyunhe/sleep": "^1.0.0",
"@mdx-js/react": "^3.1.0",
"@testing-library/dom": "^10.4.0",
"@testing-library/react": "^16.3.0",
"@testing-library/user-event": "^14.6.1",
"@types/node": "^22.15.32",
"@types/react": "^18.3.23",
"@types/react-dom": "^18.3.7",
"@vitest/coverage-v8": "^3.2.4",
"@vitest/ui": "^3.2.4",
"eslint": "^9.29.0",
"eslint-config-ali": "^16.3.0",
"eslint-config-prettier": "^10.1.5",
"eslint-plugin-prettier": "^5.5.0",
"happy-dom": "^17.6.3",
"husky": "^9.1.7",
"lint-staged": "^16.1.2",
"prettier": "^3.5.3",
"prettier-config-ali": "^1.3.4",
"react": "^18.3.1",
"react-doc-ui": "^2.4.0",
"react-dom": "^18.3.1",
"rive": "^3.1.2",
"stylelint": "^16.21.0",
"stylelint-config-ali": "^2.1.2",
"stylelint-prettier": "^5.0.3",
"typescript": "^5.8.3",
"vitest": "^3.2.4"
},
"peerDependencies": {
"react": ">=16.8.0"
},
"rive": {
"template": "react",
"doc": {
"basename": "/use-throttle-callback/"
}
},
"version": "1.0.0",
"scripts": {
"build": "rive build",
"build:watch": "rive build --watch",
"ci:eslint": "eslint -f json src -o ./.ci/eslint.json",
"lint": "eslint . && stylelint --allow-empty-input \"**/*.{css,less,scss}\"",
"lint:fix": "prettier --write . && eslint --fix . && stylelint --allow-empty-input --fix \"**/*.{css,less,scss}\"",
"start": "rive start",
"test": "vitest run",
"test:coverage": "vitest run --coverage",
"test:ui": "vitest --ui",
"test:watch": "vitest"
}
}