UNPKG

use-state-debounced

Version:

useStateDebounced - React debounced state hook

74 lines (73 loc) 2.06 kB
{ "name": "use-state-debounced", "version": "1.2.2", "description": "useStateDebounced - React debounced state hook", "source": "src/index.ts", "main": "dist/index.js", "module": "dist/index.module.js", "esmodule": "dist/index.modern.js", "umd:main": "dist/index.umd.js", "exports": { ".": { "node": { "types": "./dist/index.d.ts", "module": "./dist/index.module.js", "require": "./dist/index.js", "import": "./dist/index.mjs" }, "browser": { "types": "./dist/index.d.ts", "import": "./dist/index.module.js", "require": "./dist/index.js" }, "default": "./dist/index.module.js" }, "./package.json": "./package.json" }, "sideEffects": false, "scripts": { "build": "rm -rf ./dist/*; microbundle build --entry src/index.ts --name use-state-debounced --tsconfig tsconfig.json; cp ./dist/index.modern.js ./dist/index.mjs", "prepublishOnly": "yarn build" }, "engines": { "node": ">= 14.19.1" }, "repository": { "type": "git", "url": "https://github.com/mgustus/use-state-debounced.git" }, "keywords": [ "debounce", "react-hook", "react" ], "author": "Michael Gustus", "license": "MIT", "bugs": { "url": "https://github.com/mgustus/use-state-debounced/issues" }, "files": [ "dist" ], "peerDependencies": { "react": ">=16.8.0" }, "homepage": "https://github.com/mgustus/use-state-debounced#readme", "devDependencies": { "@types/react": "^18.0.14", "@types/react-dom": "^18.0.5", "@typescript-eslint/eslint-plugin": "^5.17.0", "@typescript-eslint/parser": "^5.17.0", "eslint": "^8.18.0", "eslint-config-airbnb": "^19.0.4", "eslint-import-resolver-typescript": "^3.1.0", "eslint-plugin-import": "^2.26.0", "eslint-plugin-jsx-a11y": "^6.6.0", "eslint-plugin-react": "^7.30.1", "eslint-plugin-react-hooks": "^4.6.0", "microbundle": "^0.15.1", "react": "^18.2.0", "react-dom": "^18.2.0", "typescript": "^4.9.5" } }