@oceanprotocol/use-dark-mode
Version:
A custom React Hook to help you implement a "dark mode" component.
69 lines (68 loc) • 1.77 kB
JSON
{
"name": "@oceanprotocol/use-dark-mode",
"publishConfig": {
"tag": "latest"
},
"version": "2.4.3",
"description": "A custom React Hook to help you implement a \"dark mode\" component.",
"main": "dist/use-dark-mode.js",
"umd:main": "dist/use-dark-mode.umd.js",
"module": "dist/use-dark-mode.m.js",
"source": "src/index.js",
"types": "types/index.d.ts",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/oceanprotocol/use-dark-mode.git"
},
"scripts": {
"prepublishOnly": "npm run build",
"lint": "eslint src",
"test": "jest --verbose --coverage --silent",
"test:watch": "jest --watch --runInBand --silent",
"prebuild": "rimraf dist",
"build": "microbundle -o dist/ --sourcemap false --target web",
"dev": "microbundle watch -o dist/ --sourcemap false --compress false"
},
"keywords": [
"react-hooks",
"hooks",
"react",
"utils",
"lib",
"dark-mode"
],
"author": "donavon",
"devDependencies": {
"@babel/core": "^7.19.1",
"@babel/preset-env": "^7.19.1",
"@babel/preset-react": "^7.18.6",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
"eslint": "^5.10.0",
"eslint-config-amex": "^9.0.0",
"eslint-plugin-react-hooks": "^4.6.0",
"jest": "^29.0.3",
"microbundle": "^0.9.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rimraf": "^3.0.2"
},
"peerDependencies": {
"react": ">=16.8.0"
},
"jest": {
"coverageThreshold": {
"global": {
"branches": 100,
"functions": 100,
"lines": 100,
"statements": 100
}
}
},
"dependencies": {
"@use-it/event-listener": "^0.1.7",
"use-persisted-state": "^0.3.3"
}
}