react-use-wake-lock
Version:
React hooks to make it easier to use Screen Wake Lock API
72 lines (71 loc) • 2.01 kB
JSON
{
"name": "react-use-wake-lock",
"version": "1.0.1",
"description": "React hooks to make it easier to use Screen Wake Lock API",
"main": "./dist/react-use-wake-lock.umd.cjs",
"module": "./dist/react-use-wake-lock.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/react-use-wake-lock.js",
"require": "./dist/react-use-wake-lock.umd.cjs"
}
},
"directories": {
"example": "example"
},
"type": "module",
"scripts": {
"test": "jest",
"build": "vite build",
"dev": "nodemon --watch src -e ts -x \"npm run build\"",
"lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"format": "prettier --ignore-path .gitignore --write \"**/*.+(js|ts)\"",
"checkFormat": "prettier --check \"**/*.+(js|ts)\" --ignore-path .gitignore",
"check": "npm run lint && npm run checkFormat"
},
"repository": {
"type": "git",
"url": "git+https://github.com/dlitsman/react-wake-lock.git"
},
"keywords": [
"react",
"wakelock",
"Screen",
"Wake",
"Lock"
],
"files": [
"dist",
"src"
],
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
},
"source": "src/index.ts",
"author": "Dmitrii Litsman",
"license": "MIT",
"bugs": {
"url": "https://github.com/dlitsman/react-wake-lock/issues"
},
"homepage": "https://github.com/dlitsman/react-wake-lock#readme",
"devDependencies": {
"@testing-library/react": "^14.0.0",
"@types/jest": "^29.5.3",
"@types/react": "^18.2.15",
"@typescript-eslint/eslint-plugin": "^6.2.1",
"@typescript-eslint/parser": "^6.2.1",
"eslint": "^8.46.0",
"eslint-plugin-react-hooks": "^4.6.0",
"jest": "^29.6.2",
"jest-environment-jsdom": "^29.6.2",
"nodemon": "^3.0.1",
"prettier": "^3.0.0",
"react": "^18.2.0",
"ts-jest": "^29.1.1",
"typescript": "^5.1.6",
"vite": "^4.4.7",
"vite-plugin-dts": "^3.4.0"
}
}