UNPKG

@sasha.p/use-persistent-state

Version:

set of hooks and tools that have useState-like semantic but allows to persist state in various storage

80 lines 2.21 kB
{ "name": "@sasha.p/use-persistent-state", "version": "1.0.5", "description": "set of hooks and tools that have useState-like semantic but allows to persist state in various storage", "main": "dist/use-persistent-state.umd.js", "module": "use-persistent-state.es.js", "types": "dist/index.ts", "exports": { ".": { "import": "./dist/use-persistent-state.es.js", "require": "./dist/use-persistent-state.umd.js" } }, "files": [ "dist" ], "repository": { "type": "git", "url": "git+https://github.com/stushurik/use-persistent-state.git" }, "keywords": [ "react", "state", "useState", "persistance", "localStorage", "UrlSearchParams", "searchParams" ], "author": "Oleksandr Poplavskyi", "license": "MIT", "bugs": { "url": "https://github.com/stushurik/use-persistent-state/issues" }, "homepage": "https://github.com/stushurik/use-persistent-state#readme", "peerDependencies": { "react": ">=18.2.0", "react-dom": ">=18.2.0" }, "devDependencies": { "@testing-library/react": "^16.3.0", "@types/jest": "^27.5.2", "@types/lodash.pickby": "^4.6.9", "@types/node": "20.19.0", "@types/react": "18.0.25", "@types/react-dom": "18.0.9", "@typescript-eslint/eslint-plugin": "6.0.0", "@typescript-eslint/parser": "6.0.0", "@vitejs/plugin-react": "^4.6.0", "eslint": "8.29.0", "eslint-config-prettier": "8.6.0", "eslint-config-react-app": "^7.0.1", "eslint-import-resolver-typescript": "3.5.5", "eslint-plugin-import": "2.27.5", "eslint-plugin-n": "15.5.1", "eslint-plugin-promise": "6.1.1", "eslint-plugin-react": "7.31.11", "husky": "8.0.0", "jest": "^29.5.0", "jest-environment-jsdom": "^30.0.4", "lint-staged": "13.0.4", "prettier": "2.8.3", "prop-types": "15.8.1", "react": "18.2.0", "react-dom": "18.2.0", "ts-jest": "^29.4.0", "typescript": "^5.1.6", "vite": "^7.0.3", "vite-plugin-dts": "^4.5.4" }, "scripts": { "build": "vite build", "test": "jest", "lint": "eslint src", "lint:fix": "eslint src --fix" }, "dependencies": { "lodash.pickby": "^4.6.0" } }