{ "name": "@phntms/use-local-state", "description": "A simple React hook that allows you to store data within LocalStorage with the same interface as the standard React.useState hook.", "version": "0.1.4", "main": "lib/index.js", "types": "lib/index.d.ts", "homepage": "https://github.com/phantomstudios/use-local-state#readme", "repository": { "type": "git", "url": "https://github.com/phantomstudios/use-local-state.git" }, "bugs": { "url": "https://github.com/phantomstudios/use-local-state/issues" }, "keywords": [ "react", "hooks", "hook", "react-hook", "localstorage", "state" ], "scripts": { "build": "tsc", "build:types": "tsc --emitDeclarationOnly", "prepublishOnly": "npm run build", "test": "jest --verbose", "test:watch": "jest --verbose --watch", "coverage": "jest --coverage", "lint": "NODE_ENV=test npm-run-all --parallel lint:*", "lint:js": "eslint \"src/**/*.{js,jsx,ts,tsx}\"", "lint:format": "prettier \"**/*.{md,html,yaml,yml}\" --check", "lint:type-check": "tsc --noEmit", "fix": "npm-run-all --sequential fix:*", "fix:js": "eslint \"src/**/*.{js,jsx,ts,tsx}\" --fix", "fix:format": "prettier \"**/*.{md,html,yaml,yml}\" --write", "depcheck": "npx npm-check --update" }, "author": "John Chipps-Harding (john.chipps-harding@phntms.com)", "license": "MIT", "peerDependencies": { "react": ">=16.8.0" }, "devDependencies": { "@babel/preset-env": "^7.18.2", "@babel/preset-typescript": "^7.17.12", "@testing-library/react": "^13.3.0", "@testing-library/react-hooks": "^8.0.1", "@types/jest": "^28.1.3", "@types/react": "^18.0.14", "@typescript-eslint/eslint-plugin": "^5.29.0", "@typescript-eslint/parser": "^5.29.0", "babel-eslint": "^10.1.0", "babel-jest": "^28.1.1", "browser-env": "^3.2.6", "eslint": "^8.18.0", "eslint-config-prettier": "^8.5.0", "eslint-plugin-import": "^2.26.0", "eslint-plugin-prettier": "^4.0.0", "eslint-plugin-react": "^7.30.0", "eslint-plugin-react-hooks": "^4.6.0", "jest": "^28.1.1", "jest-environment-jsdom": "^28.1.1", "npm-run-all": "^4.1.5", "prettier": "^2.7.1", "react": "^18.2.0", "react-dom": "^18.2.0", "react-test-renderer": "^18.2.0", "ts-jest": "^28.0.5", "typescript": "^4.7.4" }, "dependencies": {} }