UNPKG

react-use-precision-timer

Version:

A versatile precision timer hook for React. Doubles as a stopwatch.

85 lines (84 loc) 2.77 kB
{ "name": "react-use-precision-timer", "version": "3.5.6", "coreVersion": "3.0.9", "author": "Justin Mahar <contact@justinmahar.com>", "description": "A versatile precision timer hook for React. Doubles as a stopwatch.", "homepage": "https://justinmahar.github.io/react-use-precision-timer/", "main": "./dist/index.js", "types": "./dist/index.d.ts", "scripts": { "build": "rm -rf ./dist && tsc", "test": "npm run build", "start": "npm run storybook", "storybook": "storybook dev -p 6006", "build-storybook": "storybook build", "preship": "npm run build && git diff-index HEAD && npm version patch -m \"Build, version, and publish.\"", "ship": "npm publish --access public", "postship": "git push", "update": "rm -rf .lockblocks && git clone -q git@github.com:justinmahar/react-kindling.git ./.lockblocks && lockblocks ./.lockblocks . --verbose && rm -rf .lockblocks && echo '' && echo ' → Be sure to run `npm i` to install new dependencies.' && echo ''" }, "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/justinmahar/react-use-precision-timer.git" }, "bugs": { "url": "https://github.com/justinmahar/react-use-precision-timer/issues" }, "keywords": [ "react", "timer", "hook", "hooks", "stopwatch", "stop", "watch", "delay", "timeout", "interval", "setTimeout", "setInterval", "pause", "resume", "accurate", "effect" ], "peerDependencies": { "react": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^20.0.0 || ^21.0.0 || ^22.0.0", "react-dom": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^20.0.0 || ^21.0.0 || ^22.0.0" }, "devDependencies": { "@storybook/addon-docs": "^7.6.12", "@storybook/addon-essentials": "^7.6.12", "@storybook/addon-viewport": "^7.6.12", "@storybook/blocks": "^7.6.12", "@storybook/react": "^7.6.12", "@storybook/react-webpack5": "^7.6.12", "@types/react": "^18.2.53", "@typescript-eslint/eslint-plugin": "^6.20.0", "@typescript-eslint/parser": "^6.20.0", "bootstrap": "^5.2.3", "eslint": "^8.56.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-prettier": "^5.1.3", "eslint-plugin-react": "^7.33.2", "eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-storybook": "^0.6.15", "lockblocks": "^1.1.8", "prettier": "^3.2.5", "react": "^18.2.0", "react-bootstrap": "^2.7.0", "react-dom": "^18.2.0", "react-html-props": "^2.0.3", "react-markdown": "^8.0.3", "remark-gfm": "^3.0.1", "replace-in-file": "^7.1.0", "storybook": "^7.6.12", "typescript": "^5.3.3", "webpack": "^5.90.1" }, "dependencies": { "react-sub-unsub": "^2.2.2" } }