UNPKG

@react-cmpt/use-throttle

Version:

The throttled value / function hook for react

77 lines (76 loc) 1.9 kB
{ "name": "@react-cmpt/use-throttle", "version": "0.3.3", "description": "The throttled value / function hook for react", "main": "lib/index.js", "types": "lib/index.d.ts", "module": "esm/index.js", "sideEffects": false, "scripts": { "build": "rm -rf ./lib/* ./esm/* && yarn build:cjs && yarn build:es", "build:cjs": "tsc", "build:es": "tsc -m ESNext --outDir ./esm", "test": "jest -c jest.json", "lint": "eslint . --ext '.js,.jsx,.ts,.tsx'", "prettier": "prettier --write '**/*' --config ./.prettierrc", "prepare": "yarn build" }, "repository": { "type": "git", "url": "git+https://github.com/react-cmpt/use-throttle.git" }, "keywords": [ "react", "hooks", "use", "throttle", "useThrottle", "useThrottleFn", "use-throttle", "callback" ], "author": "wangcch <wangcch.cc@gmail.com>", "license": "MIT", "files": [ "esm", "lib" ], "dependencies": {}, "peerDependencies": { "react": ">16.8.0" }, "devDependencies": { "@testing-library/react-hooks": "^7.0.2", "@types/jest": "^27.4.0", "@types/react": "^17.0.38", "@types/react-dom": "^17.0.11", "@typescript-eslint/eslint-plugin": "^5.9.1", "@typescript-eslint/parser": "^5.9.1", "eslint": "^7.32.0", "eslint-config-prettier": "^8.3.0", "eslint-plugin-prettier": "^4.0.0", "eslint-plugin-react": "^7.28.0", "eslint-plugin-react-hooks": "^4.3.0", "husky": "^4.3.5", "jest": "^27.4.7", "lint-staged": "^10.5.3", "prettier": "^2.5.1", "react": "^17.0.2", "react-dom": "^17.0.2", "react-test-renderer": "^17.0.2", "ts-jest": "^27.1.2", "typescript": "^4.5.4" }, "husky": { "hooks": { "pre-commit": "lint-staged" } }, "lint-staged": { "**/*.{ts,tsx,js,jsx}": [ "prettier --write", "eslint", "git add" ] } }