UNPKG

react-autosave

Version:

A lightweight solution for auto saving controlled form values

72 lines 2.06 kB
{ "version": "0.5.0", "description": "A lightweight solution for auto saving controlled form values", "repository": "https://github.com/jollyjerr/react-autosave", "author": "jollyjerr <jollyjerr@gmail.com>", "license": "MIT", "name": "react-autosave", "type": "module", "files": [ "dist" ], "exports": { ".": { "import": { "types": "./dist/index.d.ts", "default": "./dist/react-autosave.js" } } }, "main": "./dist/react-autosave.js", "module": "./dist/react-autosave.js", "types": "./dist/index.d.ts", "keywords": [ "react", "autosave", "form" ], "devDependencies": { "@eslint/js": "^9.22.0", "@testing-library/dom": "^10.4.0", "@testing-library/react": "^16.2.0", "@testing-library/user-event": "^14.6.1", "@types/jest": "^29.5.14", "@types/node": "^22.13.10", "@types/react": "^19.0.10", "@types/react-dom": "^19.0.4", "@typescript-eslint/eslint-plugin": "^8.26.0", "@typescript-eslint/parser": "^8.26.0", "@vitejs/plugin-react": "^4.3.4", "@vitest/coverage-v8": "^3.0.8", "eslint": "^9.22.0", "eslint-plugin-jest": "^28.11.0", "eslint-plugin-react": "^7.37.4", "eslint-plugin-react-hooks": "^5.2.0", "eslint-plugin-react-refresh": "^0.4.19", "globals": "^16.0.0", "jsdom": "^26.0.0", "prettier": "^3.5.3", "react": "^19.0.0", "react-dom": "^19.0.0", "typescript": "^5.8.2", "typescript-eslint": "^8.26.0", "vite": "^6.2.1", "vite-plugin-dts": "^4.5.3", "vitest": "^3.0.8" }, "peerDependencies": { "react": ">=16.8.0", "react-dom": ">=16.8.0" }, "scripts": { "dev": "vite", "build": "tsc --noEmit && vite build", "test": "vitest", "test:coverage": "vitest run --coverage", "lint": "eslint src/**", "lint:fix": "pnpm run lint --fix", "format": "prettier . --write", "format:check": "prettier . --check", "ci": "pnpm run lint && pnpm run format:check && CI=true pnpm run test:coverage && pnpm run build" } }