UNPKG

react-use-pagination

Version:
79 lines (78 loc) 2.59 kB
{ "name": "react-use-pagination", "version": "2.0.1", "description": "A React hook to help manage pagination state", "keywords": [ "pagination", "paging", "pager", "table" ], "author": "erictooth", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/erictooth/react-use-pagination.git" }, "homepage": "https://github.com/erictooth/react-use-pagination/blob/master/README.md", "bugs": { "url": "https://github.com/erictooth/react-use-pagination/issues" }, "sideEffects": false, "main": "dist-node/react-use-pagination.js", "module": "dist-module/react-use-pagination.mjs", "types": "dist-types/index.d.ts", "files": [ "dist-module", "dist-node", "dist-types" ], "scripts": { "build": "npm run build:cjs && npm run build:esm && npm run build:types", "build:cjs": "esbuild src/index.ts --sourcemap --bundle --external:react --format=cjs --outfile=dist-node/react-use-pagination.js", "build:esm": "esbuild src/index.ts --sourcemap --bundle --external:react --format=esm --outfile=dist-module/react-use-pagination.mjs", "build:types": "tsc --emitDeclarationOnly --declaration --declarationMap false --declarationDir dist-types", "lint": "eslint src --ext=ts,tsx", "prepack": "npm run build", "test": "jest src --coverage", "typecheck": "tsc --noEmit" }, "peerDependencies": { "react": "^16.8.0 || ^17 || ^18" }, "devDependencies": { "@erictooth/eslint-config": "^3", "@erictooth/prettier-config": "^4", "@erictooth/semantic-release-npm-github-config": "^1", "@testing-library/react-hooks": "^7.0.0", "@types/jest": "^26", "@types/react": "^17", "esbuild": "^0.12.9", "eslint": "^7", "jest": "^27", "prettier": "^2", "react-test-renderer": "^17.0.2", "ts-jest": "^27", "typescript": "^4" }, "eslintConfig": { "extends": [ "@erictooth/eslint-config", "@erictooth/eslint-config/typescript", "@erictooth/eslint-config/react" ] }, "prettier": "@erictooth/prettier-config", "release": { "extends": "@erictooth/semantic-release-npm-github-config", "branches": [ "master" ] }, "jest": { "preset": "ts-jest", "collectCoverageFrom": [ "src/**/{!(index),}.{ts, tsx}" ] } }