notification-kit
Version:
A unified notification library for React + Capacitor apps. One API for push notifications, in-app notifications, and local notifications across Web, iOS, and Android.
154 lines (153 loc) • 3.94 kB
JSON
{
"name": "notification-kit",
"version": "2.0.3",
"description": "A unified notification library for React + Capacitor apps. One API for push notifications, in-app notifications, and local notifications across Web, iOS, and Android.",
"main": "dist/index.js",
"module": "dist/index.esm.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.esm.js",
"require": "./dist/index.js"
},
"./react": {
"types": "./dist/react.d.ts",
"import": "./dist/react.esm.js",
"require": "./dist/react.js"
}
},
"files": [
"dist",
"bin",
"README.md",
"LICENSE"
],
"bin": {
"notification-kit": "./bin/setup.js"
},
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"build:watch": "vite build --watch",
"test": "vitest",
"test:ui": "vitest --ui",
"test:coverage": "vitest --coverage",
"type-check": "tsc --noEmit",
"lint": "eslint src --ext .ts,.tsx",
"lint:fix": "eslint src --ext .ts,.tsx --fix",
"format": "prettier --write src/**/*.{ts,tsx}",
"format:check": "prettier --check src/**/*.{ts,tsx}",
"prepare": "husky install",
"prepublishOnly": "yarn build && yarn lint"
},
"keywords": [
"capacitor",
"react",
"notifications",
"push-notifications",
"local-notifications",
"in-app-notifications",
"firebase",
"onesignal",
"typescript",
"mobile",
"ios",
"android",
"web",
"zero-dependencies",
"provider-less",
"framework-independent",
"lightweight"
],
"author": {
"name": "Ahsan Mahmood",
"email": "aoneahsan@gmail.com",
"url": "https://aoneahsan.com"
},
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/aoneahsan/notification-kit.git"
},
"bugs": {
"url": "https://github.com/aoneahsan/notification-kit/issues"
},
"homepage": "https://github.com/aoneahsan/notification-kit#readme",
"engines": {
"node": ">=22.0.0"
},
"peerDependencies": {
"@capacitor/core": ">=7.4.2",
"@capacitor/local-notifications": ">=7.0.1",
"@capacitor/preferences": ">=7.0.1",
"@capacitor/push-notifications": ">=7.0.1",
"firebase": ">=12.0.0",
"react": ">=19.1.0",
"react-dom": ">=19.1.0",
"react-onesignal": ">=3.2.3"
},
"peerDependenciesMeta": {
"@capacitor/core": {
"optional": true
},
"@capacitor/local-notifications": {
"optional": true
},
"@capacitor/preferences": {
"optional": true
},
"@capacitor/push-notifications": {
"optional": true
},
"firebase": {
"optional": true
},
"react": {
"optional": true
},
"react-dom": {
"optional": true
},
"react-onesignal": {
"optional": true
}
},
"devDependencies": {
"@capacitor/core": "^7.4.2",
"@testing-library/dom": "^10.4.1",
"@testing-library/react": "^16.3.0",
"@testing-library/react-hooks": "^8.0.1",
"@types/node": "^24.1.0",
"@types/react": "^19.1.9",
"@types/react-dom": "^19.1.7",
"@typescript-eslint/eslint-plugin": "^8.38.0",
"@typescript-eslint/parser": "^8.38.0",
"@vitejs/plugin-react": "^4.7.0",
"@vitest/coverage-v8": "^3.2.4",
"@vitest/ui": "^3.2.4",
"eslint": "^9.32.0",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-prettier": "^5.5.3",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^6.0.0",
"globals": "^16.3.0",
"husky": "^9.1.7",
"jsdom": "^26.1.0",
"lint-staged": "^16.1.2",
"prettier": "^3.6.2",
"react": "^19.1.1",
"react-dom": "^19.1.1",
"terser": "^5.43.1",
"typescript": "^5.9.2",
"vite": "^7.0.6",
"vite-plugin-dts": "^4.5.4",
"vitest": "^3.2.4"
},
"lint-staged": {
"src/**/*.{ts,tsx}": [
"eslint --fix",
"prettier --write"
]
}
}