UNPKG

@har4s/use-local-storage

Version:

A React Hook for using Browser Local/Session Storage

51 lines (50 loc) 1.11 kB
{ "name": "@har4s/use-local-storage", "version": "0.3.4", "main": "lib/index.js", "typings": "lib/index", "license": "MIT", "keywords": [ "react", "hooks", "local storage", "localstorage", "react hooks local storage", "uselocalstorage" ], "author": "Hares Khalvati", "homepage": "https://github.com/har4s/use-local-storage#readme", "repository": { "type": "git", "url": "https://github.com/har4s/use-local-storage.git" }, "scripts": { "prepare": "tsc", "watch": "tsc -w", "test": "TZ=UTC jest" }, "engines": { "node": ">=8", "npm": ">=5" }, "peerDependencies": { "react": "^16.8.0 || ^17 || ^18" }, "devDependencies": { "@testing-library/react-hooks": "^8.0.0", "@types/jest": "^28.1.1", "@types/react": "^18.0.12", "@types/react-dom": "^18.0.5", "jest": "^28.1.0", "jest-environment-jsdom": "^28.1.0", "jest-localstorage-mock": "^2.4.21", "react": "^18.1.0", "react-dom": "^18.1.0", "ts-jest": "^28.0.4", "typescript": "^4.4.4" }, "files": [ "lib/", "src/" ] }