@plq/use-persisted-state
Version:
useState hook with persistence in storage
99 lines (98 loc) • 2.6 kB
JSON
{
"name": "@plq/use-persisted-state",
"version": "1.2.0",
"description": "useState hook with persistence in storage",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"engines": {
"node": ">=16.0.0"
},
"files": [
"/src",
"/lib",
"LICENSE"
],
"scripts": {
"build": "tsc",
"build:watch": "tsc --watch",
"build:types": "tsc --emitDeclarationOnly",
"test": "jest --verbose",
"test:watch": "npm test -- --watchAll",
"lint": "eslint ./src/**/*.ts",
"release": "dotenv release-it",
"examples": "npm run build:watch & parcel examples/index.html"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Akurganow/use-persisted-state.git"
},
"release-it": {
"hooks": {
"before:init": [
"npm run lint",
"npm test",
"npm run build"
],
"after:release": "echo Successfully released ${name} v${version} to ${repo.repository}."
},
"plugins": {
"@release-it/conventional-changelog": {
"preset": "conventionalcommits",
"infile": "CHANGELOG.md"
}
}
},
"keywords": [
"react",
"hook",
"storage",
"local-storage",
"session-storage",
"persistence",
"persist",
"sync"
],
"author": "Alex Kurganov <me@akurganow.ru>",
"license": "MIT",
"publishConfig": {
"access": "public"
},
"bugs": {
"url": "https://github.com/Akurganow/use-persisted-state/issues"
},
"homepage": "https://github.com/Akurganow/use-persisted-state#readme",
"devDependencies": {
"@release-it/conventional-changelog": "^7.0.2",
"@testing-library/jest-dom": "^6.1.3",
"@testing-library/react": "^14.0.0",
"@types/chrome": "0.0.246",
"@types/firefox-webext-browser": "^111.0.2",
"@types/jest": "^29.5.5",
"@types/react": "^18.2.25",
"@typescript-eslint/eslint-plugin": "^6.7.4",
"@typescript-eslint/parser": "^6.7.4",
"conventional-changelog-cli": "^4.1.0",
"dotenv-cli": "^7.3.0",
"eslint": "^8.51.0",
"eslint-plugin-jest": "^27.2.1",
"eslint-plugin-react": "^7.21.5",
"eslint-plugin-react-hooks": "^4.2.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jest-localstorage-mock": "^2.4.6",
"jest-webextension-mock": "^3.7.6",
"parcel": "^2.9.3",
"process": "^0.11.10",
"react-test-renderer": "^18.2.0",
"release-it": "^16.2.1",
"ts-jest": "^29.1.1",
"typescript": "^5.2.2"
},
"peerDependencies": {
"react": ">=16.8.0",
"react-dom": ">=16.8.0"
},
"dependencies": {
"@plq/is": "^1.2.0"
}
}