UNPKG

better-analytics

Version:

Zero-dependency micro-analytics JavaScript SDK < 3KB gzipped with React/Next.js/Expo support

121 lines 3.23 kB
{ "name": "better-analytics", "version": "0.10.1", "description": "Zero-dependency micro-analytics JavaScript SDK < 3KB gzipped with React/Next.js/Expo support", "repository": "decker-dev/better-analytics", "homepage": "https://better-analytics.app/", "bugs": "https://github.com/decker-dev/better-analytics/issues", "main": "dist/index.cjs", "module": "dist/index.js", "types": "dist/index.d.ts", "exports": { ".": { "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" }, "./next": { "types": "./dist/next/next.d.ts", "import": "./dist/next/next.js", "require": "./dist/next/next.cjs" }, "./expo": { "types": "./dist/expo.d.ts", "import": "./dist/expo.js", "require": "./dist/expo.cjs" }, "./server": { "types": "./dist/server.d.ts", "import": "./dist/server.js", "require": "./dist/server.cjs" }, "./package.json": "./package.json" }, "files": [ "dist" ], "keywords": [ "analytics", "tracking", "sdk", "javascript", "nextjs", "react", "expo", "server-side", "edge-functions", "zero-dependencies", "lightweight", "typescript" ], "license": "MIT", "peerDependencies": { "@react-native-async-storage/async-storage": ">=1.0.0", "expo": ">=48.0.0", "expo-application": "*", "expo-device": "*", "expo-localization": "*", "expo-network": "*", "expo-router": "*", "next": ">=13", "react": ">=18", "react-native": ">=0.60.0" }, "peerDependenciesMeta": { "react": { "optional": true }, "next": { "optional": true }, "@react-native-async-storage/async-storage": { "optional": true }, "react-native": { "optional": true }, "expo": { "optional": true }, "expo-device": { "optional": true }, "expo-application": { "optional": true }, "expo-localization": { "optional": true }, "expo-network": { "optional": true }, "expo-router": { "optional": true } }, "devDependencies": { "@react-native-async-storage/async-storage": "^2.2.0", "@testing-library/jest-dom": "^6.0.0", "@testing-library/react": "^14.3.1", "@types/node": "^20.0.0", "@types/react": "^19.0.0", "expo-application": "^6.1.4", "expo-device": "^7.1.4", "expo-localization": "^16.1.5", "expo-network": "^7.1.5", "jsdom": "^23.0.0", "react": "^18.0.0", "react-dom": "^18.0.0", "react-native": "^0.80.1", "tsup": "^8.0.0", "typescript": "^5.0.0", "vitest": "^1.0.0" }, "scripts": { "build": "tsup src/index.ts src/next/next.ts src/next/next-client.ts src/next/next-server.ts src/expo.ts src/server.ts --format esm,cjs --dts --minify --external ./next-client --external ./next-server", "dev": "tsup src/index.ts src/next/next.ts src/next/next-client.ts src/next/next-server.ts src/expo.ts src/server.ts --format esm,cjs --dts --watch --external ./next-client --external ./next-server", "lint": "echo 'No linting configured'", "check-types": "tsc --noEmit", "test": "vitest run" } }