tg-use-local-storage-state
Version:
React hook that persists data in localStorage
95 lines (94 loc) • 2.92 kB
JSON
{
"name": "tg-use-local-storage-state",
"version": "16.0.3",
"description": "React hook that persists data in localStorage",
"license": "MIT",
"repository": "tnrich/use-local-storage-state",
"funding": "https://github.com/sponsors/tnrich",
"homepage": "https://github.com/tnrich/use-local-storage-state",
"author": {
"name": "Antonio Stoilkov",
"email": "hello@tnrich.com",
"url": "http://tnrich.com"
},
"keywords": [
"react",
"hook",
"localStorage",
"persistent",
"state",
"useState",
"hooks",
"local storage",
"store"
],
"module": "es/index.js",
"jsnext:main": "es/index.js",
"exports": "./es/index.js",
"sideEffects": false,
"scripts": {
"start": "cd demo; yarn start",
"build": "tsc && tsc --project tsconfig.esm.json",
"size": "yarn run build && size-limit",
"lint": "eslint --cache --format=pretty --ext=.ts ./",
"test": "yarn run build && yarn run lint && if [[ -z $CI ]]; then jest --coverage --coverageReporters=text; else jest --coverage; fi",
"release": "yarn run build && np",
"prettier": "prettier --write --config .prettierrc.yaml {*.ts,*.json}"
},
"engines": {
"node": ">=12"
},
"files": [
"./index.js",
"src/*.js",
"index.d.ts",
"src/*.d.ts",
"es/**/*.js"
],
"peerDependencies": {
"react": ">=16.8.0",
"react-dom": ">=16.8.0"
},
"devDependencies": {
"@size-limit/preset-small-lib": "^7.0.5",
"@testing-library/react": "^12.1.4",
"@testing-library/react-hooks": "^7.0.2",
"@types/jest": "^27.4.0",
"@types/react": "^17.0.38",
"@types/react-dom": "^17.0.0",
"@typescript-eslint/eslint-plugin": "^5.10.0",
"@typescript-eslint/parser": "^5.10.0",
"confusing-browser-globals": "^1.0.11",
"cypress": "^9.5.2",
"eslint": "^8.7.0",
"eslint-config-strictest": "^0.4.0",
"eslint-formatter-pretty": "^4.0.0",
"eslint-plugin-promise": "^6.0.0",
"eslint-plugin-react": "^7.28.0",
"eslint-plugin-react-hooks": "^4.2.0",
"eslint-plugin-unicorn": "^40.1.0",
"jest": "^27.4.7",
"np": "^7.2.0",
"prettier": "^2.0.5",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-test-renderer": "^17.0.1",
"size-limit": "^7.0.5",
"ts-jest": "^27.1.3",
"typescript": "^4.5.4",
"use-local-storage-state": "^16.0.1"
},
"size-limit": [
{
"name": "import *",
"path": "es/index.js",
"limit": "1.75 kB",
"gzip": false
},
{
"name": "import *",
"path": "es/index.js",
"limit": "800 B"
}
]
}