UNPKG

react-use-toggle

Version:
52 lines (51 loc) 1.38 kB
{ "name": "react-use-toggle", "version": "0.2.0", "description": "React hook for toggle state.", "keywords": [ "hooks", "react", "toggle" ], "repository": "git@github.com:bsonntag/react-use-toggle.git", "license": "MIT", "author": "Benjamim Sonntag <benjamimsonntag@gmail.com>", "main": "dist/index.js", "scripts": { "bundle": "rm -rf dist && babel src --out-dir dist --ignore **/*.test.js", "bundle:watch": "babel src --out-dir dist --watch --ignore **/*.test.js", "example": "parcel --out-dir build example/index.html", "lint": "eslint .", "test": "jest", "test:watch": "jest --watch --notify", "version": "npm run bundle && git add dist" }, "jest": { "coverageDirectory": "coverage", "coverageReporters": [ "html", "lcov", "text" ] }, "devDependencies": { "@babel/cli": "^7.10.1", "@babel/core": "^7.10.2", "@babel/preset-env": "^7.10.2", "@babel/preset-react": "^7.10.1", "@bsonntag/eslint-config": "^0.6.0", "@testing-library/react-hooks": "^3.3.0", "eslint": "^6.8.0", "husky": "^4.2.5", "jest": "^26.0.1", "lint-staged": "^10.2.10", "parcel": "^1.12.4", "prettier": "^2.0.5", "react": "^16.13.1", "react-dom": "^16.13.1", "react-test-renderer": "^16.13.1" }, "peerDependencies": { "react": ">=16.8.0" } }