-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
99 lines (99 loc) · 2.81 KB
/
Copy pathpackage.json
File metadata and controls
99 lines (99 loc) · 2.81 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
{
"name": "npm-ai-hooks",
"version": "2.0.6",
"description": "Universal AI Hook Layer for Node.js and React – one wrapper for all AI providers. Inject LLM-like behavior into any JavaScript or TypeScript function with a single line, without writing prompts, handling SDKs, or locking into any provider.",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js"
}
},
"files": [
"dist",
"Readme.md",
"LICENSE"
],
"scripts": {
"dev": "ts-node src/index.ts",
"clean": "rimraf dist",
"build": "npm run clean && npm run build:esm && npm run build:cjs",
"build:esm": "tsc --project tsconfig.esm.json",
"build:cjs": "tsc --project tsconfig.cjs.json",
"test": "jest --verbose",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage",
"test:ci": "jest --ci --coverage --watchAll=false",
"test:providers": "jest tests/providers.test.ts --verbose",
"test:tasks": "jest tests/tasks.test.ts --verbose",
"test:errors": "jest tests/error-handling.test.ts --verbose",
"test:integration": "jest tests/integration.test.ts --verbose",
"test:performance": "jest tests/performance.test.ts --verbose",
"test:env": "jest --testNamePattern=\"Real API|Environment-based\" --verbose",
"test:mock": "jest --testNamePattern=\"Provider Detection|Task Tests\" --verbose",
"lint": "eslint .",
"format": "prettier --write .",
"prepare": "npm run build",
"demo": "npx ts-node examples/demo.ts",
"setup:dev": "bash scripts/setup-dev.sh",
"setup:dev:win": "scripts\\setup-dev.bat",
"setup:dev:ps": "powershell -ExecutionPolicy Bypass -File scripts\\setup-dev.ps1"
},
"author": "AteebNoOne <ateebnoone@gmail.com>",
"repository": {
"type": "git",
"url": "git+https://github.com/iTeebot/npm-ai-hooks.git"
},
"license": "MIT",
"devDependencies": {
"@eslint/js": "^10.0.1",
"@types/jest": "^30.0.0",
"@types/node": "^26.0.1",
"eslint": "^10.5.0",
"jest": "^30.2.0",
"prettier": "^3.6.2",
"rimraf": "^6.0.1",
"ts-jest": "^29.4.4",
"ts-node": "^10.9.2",
"typescript": "^6.0.3",
"typescript-eslint": "^8.62.0"
},
"keywords": [
"ai",
"llm",
"openai",
"claude",
"gemini",
"groq",
"openrouter",
"deepseek",
"mistral",
"xai",
"perplexity",
"react",
"vite",
"express",
"nodejs",
"typescript",
"hooks",
"wrapper",
"universal",
"cross-platform"
],
"engines": {
"node": ">=18"
},
"publishConfig": {
"access": "public"
},
"allowScripts": {
"fsevents@2.3.3": true,
"unrs-resolver@1.12.2": true
},
"overrides": {
"js-yaml": "^5.2.0"
}
}