react-sessionstorage-ttl-hook
Version:
React hook for sessionStorage with TTL and auto-expiry
50 lines (49 loc) • 1.2 kB
JSON
{
"name": "react-sessionstorage-ttl-hook",
"version": "1.0.7",
"description": "React hook for sessionStorage with TTL and auto-expiry",
"main": "dist/useSessionStorageWithTTL.js",
"types": "dist/useSessionStorageWithTTL.d.ts",
"exports": {
".": {
"import": "./dist/useSessionStorageWithTTL.js",
"require": "./dist/useSessionStorageWithTTL.js"
}
},
"scripts": {
"test": "jest",
"build": "tsc",
"prepare": "npm run build"
},
"keywords": [
"react",
"hook",
"sessionStorage",
"ttl",
"auto-expiry",
"react-hook"
],
"author": "Your Name",
"license": "MIT",
"devDependencies": {
"@types/node": "^14.14.0",
"@types/react": "^16.14.65",
"jest-environment-jsdom": "^30.0.2",
"react": "^16.8.0",
"react-dom": "^16.8.0",
"typescript": "^5.0.0",
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^11.2.7",
"@testing-library/react-hooks": "^5.1.3",
"@types/jest": "^29.5.14",
"@types/react-dom": "^16.8.0",
"jest": "^29.7.0",
"ts-jest": "^29.4.0"
},
"peerDependencies": {
"react": ">=16.8.0",
"react-dom": ">=16.8.0"
},
"dependencies": {
}
}