UNPKG

@anatoliygatt/use-prefers-color-scheme

Version:

React hook for subscribing to user's color scheme preference.

94 lines (93 loc) 2.76 kB
{ "name": "@anatoliygatt/use-prefers-color-scheme", "version": "1.0.10", "description": "React hook for subscribing to user's color scheme preference.", "keywords": [ "react", "react-hook", "hook", "prefers-color-scheme", "accessibility", "a11y", "javascript", "typescript" ], "homepage": "https://github.com/anatoliygatt/use-prefers-color-scheme#readme", "bugs": "https://github.com/anatoliygatt/use-prefers-color-scheme/issues", "repository": { "type": "git", "url": "https://github.com/anatoliygatt/use-prefers-color-scheme.git" }, "license": "MIT", "author": "Anatoliy Gatt", "sideEffects": false, "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/cjs/index.d.ts", "files": [ "dist/" ], "scripts": { "prebuild": "rimraf dist", "build": "run-s build:*", "build:cjs": "tsc", "build:esm": "tsc --module esnext --outDir dist/esm", "commit": "git-cz", "lint": "run-s lint:*", "lint:eslint": "eslint . --ignore-path .gitignore", "lint:prettier": "prettier --check . --ignore-path .gitignore", "lint:tsc": "tsc --noEmit", "prepare": "is-ci || husky install", "semantic-release": "semantic-release", "test": "jest", "test:coverage": "jest --coverage", "test:watch": "jest --watch" }, "config": { "commitizen": { "path": "cz-conventional-changelog" } }, "devDependencies": { "@commitlint/cli": "^17.0.1", "@commitlint/config-conventional": "^17.1.0", "@semantic-release/changelog": "^6.0.1", "@semantic-release/exec": "^6.0.3", "@semantic-release/git": "^10.0.1", "@testing-library/react-hooks": "^8.0.0", "@types/jest": "^27.4.0", "@types/node": "^18.7.20", "@types/react": "^17.0.38", "@types/react-dom": "^17.0.11", "@typescript-eslint/eslint-plugin": "^5.9.1", "@typescript-eslint/parser": "^5.9.1", "commitizen": "^4.2.4", "conventional-changelog-conventionalcommits": "^5.0.0", "eslint": "^8.6.0", "eslint-config-prettier": "^8.3.0", "eslint-plugin-import": "^2.25.4", "eslint-plugin-jest": "^27.0.4", "eslint-plugin-prettier": "^4.0.0", "eslint-plugin-react-hooks": "^4.3.0", "husky": "^8.0.2", "is-ci": "^3.0.1", "jest": "^27.4.7", "jest-matchmedia-mock": "^1.1.0", "lint-staged": "^13.0.3", "npm-run-all": "^4.1.5", "prettier": "^2.5.1", "react": "^17.0.2", "react-dom": "^17.0.2", "rimraf": "^3.0.2", "semantic-release": "^21.0.1", "sort-package-json": "^1.53.1", "ts-jest": "^27.1.3", "typescript": "^4.5.4" }, "peerDependencies": { "react": "^16.8.0 || ^17.0.0 || ^18.0.0" }, "publishConfig": { "access": "public" } }