awilixify 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +33 -0
- package/package.json +58 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Ruslan Vanzhula
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# awilixify
|
|
2
|
+
|
|
3
|
+
[](https://github.com/wildstyles/awilixify/actions)
|
|
4
|
+
[](https://codecov.io/gh/wildstyles/awilixify)
|
|
5
|
+
|
|
6
|
+
📚 Documentation: https://wildstyles.github.io/awilixify/
|
|
7
|
+
|
|
8
|
+
A type-safe, modular DI and CQRS framework on top of [Awilix](https://github.com/jeffijoe/awilix) that brings NestJS-like module architecture with powerful CQRS capabilities to any Node.js application.
|
|
9
|
+
|
|
10
|
+
🚀 **includes native ES decorators (TC39 Stage 3) for routing - no `reflect-metadata` or `experimentalDecorators` required!**
|
|
11
|
+
|
|
12
|
+
## Features
|
|
13
|
+
|
|
14
|
+
- **Type-Safe Module System** - Complete type safety for each provider in module
|
|
15
|
+
- **HTTP Framework Agnostic** - Works with Express, Fastify, Hono, Koa, or any other framework
|
|
16
|
+
- **Powerful CQRS** - Type-safe query/command handlers with middleware pipeline, per-module mediators, and contract-based execution
|
|
17
|
+
- **NestJS-Inspired Architecture** - Familiar module/controller/provider patterns
|
|
18
|
+
- **Less Import Boilerplate For Typing** - Define module dependencies once - reuse in all providers
|
|
19
|
+
- **Lightweight** - Minimal overhead, built on proven Awilix foundation
|
|
20
|
+
|
|
21
|
+
## Installation
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
npm install awilixify awilix
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
yarn add awilixify awilix
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
pnpm add awilixify awilix
|
|
33
|
+
```
|
package/package.json
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "awilixify",
|
|
3
|
+
"description": "HTTP-framework-agnostic modular DI and CQRS framework for Awilix with Nest-like module patterns and strict type safety",
|
|
4
|
+
"main": "dist/index.js",
|
|
5
|
+
"types": "dist/index.d.ts",
|
|
6
|
+
"version": "2.2.1",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"build": "tsc",
|
|
10
|
+
"build:watch": "tsc --watch",
|
|
11
|
+
"build:release": "del-cli dist && npm run lint && npm run build",
|
|
12
|
+
"check-types": "tsc --pretty --noEmit",
|
|
13
|
+
"docs:dev": "vitepress dev docs",
|
|
14
|
+
"docs:build": "vitepress build docs",
|
|
15
|
+
"docs:preview": "vitepress preview docs",
|
|
16
|
+
"lint:fix": "biome check --write lib test index.ts",
|
|
17
|
+
"lint": "biome check lib test",
|
|
18
|
+
"test": "vitest run",
|
|
19
|
+
"test:watch": "vitest",
|
|
20
|
+
"test:coverage": "vitest run --coverage",
|
|
21
|
+
"test:types": "tstyche",
|
|
22
|
+
"test:types:watch": "tstyche --watch"
|
|
23
|
+
},
|
|
24
|
+
"peerDependencies": {
|
|
25
|
+
"awilix": ">=9.0.0"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@biomejs/biome": "2.3.15",
|
|
29
|
+
"@shikijs/vitepress-twoslash": "^4.0.2",
|
|
30
|
+
"@types/node": "^22.15.21",
|
|
31
|
+
"@vitest/coverage-v8": "^4.0.18",
|
|
32
|
+
"del-cli": "^7.0.0",
|
|
33
|
+
"tstyche": "^5.0.2",
|
|
34
|
+
"typescript": "^5.9.3",
|
|
35
|
+
"vitepress": "^1.6.4",
|
|
36
|
+
"vitest": "^4.0.18"
|
|
37
|
+
},
|
|
38
|
+
"type": "module",
|
|
39
|
+
"repository": {
|
|
40
|
+
"type": "git",
|
|
41
|
+
"url": "git://github.com/wildstyles/awilixify.git"
|
|
42
|
+
},
|
|
43
|
+
"keywords": [
|
|
44
|
+
"modular",
|
|
45
|
+
"dependency-injection",
|
|
46
|
+
"di",
|
|
47
|
+
"modularization",
|
|
48
|
+
"awilix",
|
|
49
|
+
"cqrs",
|
|
50
|
+
"mediator"
|
|
51
|
+
],
|
|
52
|
+
"homepage": "https://github.com/wildstyles/awilixify",
|
|
53
|
+
"files": [
|
|
54
|
+
"README.md",
|
|
55
|
+
"LICENSE",
|
|
56
|
+
"dist/*"
|
|
57
|
+
]
|
|
58
|
+
}
|