package.json
{
"name": "use-local-storage-state",
"version": "19.4.1",
"description": "React hook that persist data in localStorage",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/astoilkov/use-local-storage-state.git"
},
"funding": "https://github.com/sponsors/astoilkov",
"homepage": "https://github.com/astoilkov/use-local-storage-state",
"author": {
"name": "Antonio Stoilkov",
"email": "hello@astoilkov.com",
"url": "https://astoilkov.com"
},
"keywords": [
"react",
"hook",
"localStorage",
"persistent",
"state",
"useState",
"hooks",
"local storage",
"store"
],
"type": "module",
"exports": {
"types": "./index.d.ts",
"default": "./index.js"
},
"sideEffects": false,
"scripts": {
"build": "tsc",
"size": "yarn build && size-limit",
"lint": "eslint --cache --format=pretty --ext=.ts ./",
"test": "yarn build && yarn lint && vitest --run",
"release": "yarn build && np",
"prettier": "prettier --write --config .prettierrc.yaml {*.ts,*.json}"
},
"engines": {
"node": ">=14"
},
"files": [
"index.js",
"index.d.ts",
"src/**/*.js",
"src/**/*.d.ts"
],
"peerDependencies": {
"react": ">=18",
"react-dom": ">=18"
},
"devDependencies": {
"@size-limit/preset-small-lib": "^11.1.1",
"@testing-library/react": "^14.0.0",
"@types/react": "^18.2.67",
"@types/react-dom": "^18.2.22",
"@typescript-eslint/eslint-plugin": "^7.2.0",
"@typescript-eslint/parser": "^7.2.0",
"@vitest/coverage-v8": "^1.4.0",
"confusing-browser-globals": "^1.0.11",
"eslint": "^8.21.0",
"eslint-config-strictest": "^0.8.1",
"eslint-formatter-pretty": "^5.0.0",
"eslint-plugin-promise": "^6.0.0",
"eslint-plugin-react": "^7.29.4",
"eslint-plugin-react-hooks": "^4.5.0",
"eslint-plugin-unicorn": "^43.0.2",
"jsdom": "^22.1.0",
"np": "^7.6.3",
"prettier": "^3.2.5",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-test-renderer": "^18.1.0",
"size-limit": "^11.1.1",
"superjson": "^2.2.1",
"typescript": "^5.4.2",
"vitest": "^1.4.0"
},
"size-limit": [
{
"name": "import *",
"path": "index.js",
"limit": "1.7 kB",
"brotli": false
},
{
"name": "import *",
"path": "index.js",
"limit": "750 B"
}
]
}