Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
55 lines (55 loc) · 1.45 KB
/
Copy pathpackage.json
File metadata and controls
55 lines (55 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{
"name": "react-hook-useagent",
"version": "1.2.2",
"description": "A react hook which provides a simple way to get the user agent of the browser",
"author": {
"name": "Flo Ragossnig",
"email": "florian.ragossnig@me.com"
},
"repository": {
"type": "git",
"url": "https://github.com/Poolshark/react-hook-useagent.git"
},
"module": "index.ts",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"type": "module",
"keywords": [
"react",
"react-hook",
"user-agent",
"browser",
"device",
"os",
"mobile"
],
"license": "MIT",
"devDependencies": {
"@testing-library/react": "^16.3.0",
"@testing-library/react-hooks": "^8.0.1",
"@types/node": "^24.10.2",
"bun-types": "^1.3.4",
"fast-check": "^4.4.0",
"jsdom": "^27.3.0",
"rimraf": "^6.1.2",
"vitest": "^4.0.15"
},
"peerDependencies": {
"typescript": "^5.7.3",
"react": "^19.0.0"
},
"dependencies": {
"@types/react": "^19.2.7",
"latest": "^0.2.0"
},
"scripts": {
"build": "bun build --target=node ./src/index.ts --outfile=dist/index.js --minify --external react && bun run build:declaration",
"build:declaration": "tsc --emitDeclarationOnly --project tsconfig.types.json",
"postbuild": "rimraf tsconfig.types.tsbuildinfo",
"test": "vitest run",
"test:watch": "vitest",
"test:ui": "vitest --ui",
"test:coverage": "vitest run --coverage"
},
"files": ["dist/*.js", "dist/*.d.ts"]
}