UNPKG

react-timer-hook

Version:

React timer hook is a custom react hook built to handle timers(countdown), stopwatch and time logic/state in your react component.

65 lines (64 loc) 1.91 kB
{ "name": "react-timer-hook", "version": "4.0.5", "description": "React timer hook is a custom react hook built to handle timers(countdown), stopwatch and time logic/state in your react component.", "main": "dist/index.js", "types": "dist/types/src/index.d.ts", "scripts": { "prepare": "yarn build:prod", "build:demo": "rm -r ./docs || true && webpack --config webpack.dev.js && cp ./demo/index.html ./docs && webpack-dev-server --open --config webpack.dev.js", "build:prod": "rm -r ./dist || true && webpack --config webpack.prod.js && rm -r ./dist/types/demo", "lint": "node_modules/.bin/eslint src" }, "husky": { "hooks": { "pre-commit": "yarn lint && yarn tsc --noEmit" } }, "repository": { "type": "git", "url": "git+https://github.com/amrlabib/react-timer-hook.git" }, "keywords": [ "react", "react-hook", "react-hooks", "timer", "countdown", "time", "clock", "useTimer", "useStopwatch", "useTime", "react-native" ], "author": "amrlabib", "license": "ISC", "bugs": { "url": "https://github.com/amrlabib/react-timer-hook/issues" }, "homepage": "https://github.com/amrlabib/react-timer-hook#readme", "devDependencies": { "@types/react": "^19.0.10", "@types/react-dom": "^19.0.4", "@types/styled-components": "^5.1.34", "@typescript-eslint/eslint-plugin": "^8.26.0", "@typescript-eslint/parser": "^8.26.0", "eslint": "^9.22.0", "eslint-plugin-import": "^2.19.1", "eslint-plugin-react": "^7.17.0", "eslint-plugin-react-hooks": "^5.2.0", "husky": "^4.0.1", "react": "^16.8.0", "react-dom": "16.8.0", "styled-components": "^5.2.1", "ts-loader": "^9.5.2", "typescript": "^5.8.2", "webpack": "^5.80.0", "webpack-cli": "^5.0.2", "webpack-dev-server": "^4.13.3" }, "peerDependencies": { "react": ">=16.8.0" } }