UNPKG

react-single-tab-enforcer

Version:

A simple React hook for enforcing single-tab behavior with TypeScript support

71 lines (70 loc) 1.99 kB
{ "name": "react-single-tab-enforcer", "version": "0.0.1", "type": "module", "description": "A simple React hook for enforcing single-tab behavior with TypeScript support", "main": "dist/index.js", "module": "dist/index.esm.js", "types": "dist/index.d.ts", "files": [ "dist" ], "scripts": { "build": "rollup -c", "dev": "rollup -c -w", "test": "jest", "test:watch": "jest --watch", "test:coverage": "jest --coverage", "test:coverage:watch": "jest --coverage --watch", "type-check": "tsc --noEmit", "lint": "eslint src --ext .ts,.tsx", "lint:fix": "eslint src --ext .ts,.tsx --fix", "prepare": "npm run build" }, "keywords": [ "react", "single-tab", "tab-enforcement", "browser-tab", "typescript", "hook", "localStorage" ], "author": "Lomet", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/Lomet/react-single-tab-enforcer.git" }, "bugs": { "url": "https://github.com/Lomet/react-single-tab-enforcer/issues" }, "homepage": "https://github.com/Lomet/react-single-tab-enforcer#readme", "peerDependencies": { "react": ">=16.8.0" }, "devDependencies": { "@rollup/plugin-commonjs": "^28.0.1", "@rollup/plugin-node-resolve": "^15.3.0", "@rollup/plugin-typescript": "^12.1.1", "@testing-library/jest-dom": "^6.6.3", "@testing-library/react": "^13.4.0", "@testing-library/user-event": "^14.6.1", "@types/jest": "^30.0.0", "@types/react": "^18.3.12", "@typescript-eslint/eslint-plugin": "^8.15.0", "@typescript-eslint/parser": "^8.15.0", "eslint": "^9.16.0", "eslint-plugin-react": "^7.37.2", "eslint-plugin-react-hooks": "^5.0.0", "jest": "^30.0.5", "jest-environment-jsdom": "^30.0.5", "react": "^18.3.1", "react-dom": "^18.3.1", "rollup": "^4.28.1", "rollup-plugin-dts": "^6.1.1", "ts-jest": "^29.4.0", "tslib": "^2.8.1", "typescript": "^5.8.3" } }