@devgalena/react-use-logger
Version:
`react-use-logger` is a React hook to log messages. It also contains a function `useLogger` and a class `LoggingContextProvider` to set the logging levels of the library / application
69 lines (68 loc) • 2.09 kB
JSON
{
"name": "@devgalena/react-use-logger",
"version": "0.1.7",
"private": false,
"type": "module",
"main": "dist/main.js",
"types": "dist/main.d.ts",
"license": "MIT",
"files": [
"dist"
],
"repository": {
"type": "git",
"url": "git+https://github.com/devgalena/devgalena.git"
},
"keywords": [
"useLogger",
"LoggingContext",
"LoggingContextProvider",
"LoggingLevel",
"react -logger"
],
"homepage": "https://devgalena.com/react-hooks/use-logger",
"sideEffects": [
"**/*.css"
],
"devDependencies": {
"@eslint/js": "^9.17.0",
"@tsconfig/vite-react": "^3.0.2",
"@types/node": "^22.5.1",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react": "^4.3.1",
"eslint": "^9.17.0",
"eslint-plugin-react-hooks": "^5.0.0",
"eslint-plugin-react-refresh": "^0.4.9",
"glob": "^11.0.0",
"globals": "^15.9.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"typescript": "^5.5.3",
"typescript-eslint": "^8.18.0",
"vite": "^6.0.3",
"vite-plugin-dts": "^4.2.1",
"vite-plugin-lib-inject-css": "^2.1.1",
"npm-run-all": "~4.1.5"
},
"peerDependencies": {
"react": "~18.3.1",
"react-dom": "~18.3.1"
},
"scripts": {
"dev": "vite",
"build": "tsc --p ./tsconfig-build.json && vite build",
"clean": "rm -fr dist",
"lint:test": "eslint -c ./../../../eslint.config.test.js __tests__",
"lint:src": "eslint lib",
"lint:fix": "eslint --fix lib",
"prepublishOnly": "npm run clean && npm run build && npm run test && npm run lint",
"lint": "npm run lint:src && npm run lint:test",
"preview": "vite preview",
"test": "vitest run",
"test:interactive": "vitest",
"test:watch": "vitest --watch",
"test:ui": "vitest --ui",
"test:coverage": "vitest run --coverage"
}
}