UNPKG

react-usedrafty

Version:

📝 A React hook to auto-save and restore form state using localStorage or sessionStorage.

60 lines (59 loc) 1.35 kB
{ "name": "react-usedrafty", "version": "2.1.0", "description": "📝 A React hook to auto-save and restore form state using localStorage or sessionStorage.", "main": "dist/index.cjs", "module": "dist/index.js", "types": "dist/index.d.ts", "exports": { ".": { "import": "./dist/index.js", "require": "./dist/index.cjs" } }, "files": [ "dist", "README.md", "LICENSE" ], "scripts": { "clean": "rimraf dist", "build": "tsup", "dev": "tsup --watch", "type-check": "tsc --noEmit", "test": "echo \"No tests yet\"", "prepack": "npm run clean && npm run build", "postpack": "echo Package build and pack complete" }, "keywords": [ "react", "hook", "form", "draft", "auto-save", "storage", "localStorage" ], "author": { "name": "jbviaai" }, "license": "MIT", "repository": { "type": "git", "url": "https://github.com/jsbimra/react-usedrafty.git" }, "homepage": "https://github.com/jsbimra/react-usedrafty#readme", "bugs": { "url": "https://github.com/jsbimra/react-usedrafty/issues" }, "peerDependencies": { "react": ">=17.0.0" }, "devDependencies": { "@types/react": "^18.0.28", "@types/react-dom": "^18.0.11", "rimraf": "^6.0.1", "tsup": "^8.5.0", "typescript": "^5.4.0" } }