infra-cost 0.2.3 → 0.3.0
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/README.md +325 -201
- package/bin/index.js +1 -1
- package/dist/demo/test-enhanced-ui.js +5 -9
- package/dist/demo/test-multi-cloud-dashboard.js +42 -53
- package/dist/index.js +24225 -7855
- package/package.json +93 -101
package/package.json
CHANGED
|
@@ -1,7 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "infra-cost",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Multi-cloud FinOps CLI tool for comprehensive cost analysis and infrastructure optimization across AWS, GCP, Azure, Alibaba Cloud, and Oracle Cloud",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"aws",
|
|
7
|
+
"gcp",
|
|
8
|
+
"azure",
|
|
9
|
+
"cloud-cost",
|
|
10
|
+
"finops",
|
|
11
|
+
"cost-optimization",
|
|
12
|
+
"multi-cloud",
|
|
13
|
+
"cost-analysis",
|
|
14
|
+
"infrastructure",
|
|
15
|
+
"cloud-billing",
|
|
16
|
+
"cost-management",
|
|
17
|
+
"devops",
|
|
18
|
+
"cli-tool",
|
|
19
|
+
"cost-monitoring",
|
|
20
|
+
"budget-tracking"
|
|
21
|
+
],
|
|
5
22
|
"author": {
|
|
6
23
|
"name": "Code Collab",
|
|
7
24
|
"email": "codecollab.co@gmail.com",
|
|
@@ -14,128 +31,103 @@
|
|
|
14
31
|
"bin/**/*"
|
|
15
32
|
],
|
|
16
33
|
"bin": {
|
|
17
|
-
"infra-cost": "
|
|
18
|
-
"aws-cost": "
|
|
34
|
+
"infra-cost": "bin/index.js",
|
|
35
|
+
"aws-cost": "bin/index.js"
|
|
19
36
|
},
|
|
37
|
+
"main": "./dist/index.js",
|
|
20
38
|
"scripts": {
|
|
21
|
-
"build": "tsup",
|
|
22
|
-
"dev": "tsup --watch",
|
|
23
39
|
"prebuild": "run-s clean",
|
|
24
|
-
"
|
|
40
|
+
"build": "tsup",
|
|
25
41
|
"clean": "rm -rf dist",
|
|
26
42
|
"typecheck": "tsc --noEmit",
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"version:
|
|
34
|
-
"version:
|
|
43
|
+
"lint": "eslint src --ext .ts",
|
|
44
|
+
"lint:fix": "eslint src --ext .ts --fix",
|
|
45
|
+
"test": "jest",
|
|
46
|
+
"test:watch": "jest --watch",
|
|
47
|
+
"test:coverage": "jest --coverage",
|
|
48
|
+
"dev": "tsup --watch",
|
|
49
|
+
"version:check": "echo \"Current version: $(npm pkg get version | tr -d '\"')\"",
|
|
50
|
+
"version:next": "npm version patch --no-git-tag-version",
|
|
51
|
+
"version:bump:patch": "npm version patch",
|
|
52
|
+
"version:bump:minor": "npm version minor",
|
|
53
|
+
"version:bump:major": "npm version major",
|
|
35
54
|
"publish:dry": "npm publish --dry-run",
|
|
55
|
+
"publish:latest": "npm publish",
|
|
36
56
|
"publish:beta": "npm publish --tag beta",
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"prepublishOnly": "npm run build"
|
|
40
|
-
"postversion": "echo \"Don't forget to push the tag: git push origin v$npm_package_version\"",
|
|
41
|
-
"postpublish": "echo \"🎉 Published $(npm pkg get name)@$(npm pkg get version) to npm!\""
|
|
57
|
+
"prepare-release": "npm run build && npm run test && npm run version:bump:patch",
|
|
58
|
+
"postpublish": "echo \"🎉 Published $(npm pkg get name)@$(npm pkg get version) to npm!\"",
|
|
59
|
+
"prepublishOnly": "npm run build"
|
|
42
60
|
},
|
|
43
|
-
"keywords": [
|
|
44
|
-
"aws",
|
|
45
|
-
"gcp",
|
|
46
|
-
"azure",
|
|
47
|
-
"alibaba-cloud",
|
|
48
|
-
"oracle-cloud",
|
|
49
|
-
"multi-cloud",
|
|
50
|
-
"cost",
|
|
51
|
-
"cli",
|
|
52
|
-
"infra-cost",
|
|
53
|
-
"cloud-cost",
|
|
54
|
-
"cost-analysis",
|
|
55
|
-
"typescript"
|
|
56
|
-
],
|
|
57
|
-
"license": "MIT",
|
|
58
61
|
"repository": {
|
|
59
62
|
"type": "git",
|
|
60
|
-
"url": "https://github.com/codecollab-co/infra-cost.git"
|
|
61
|
-
},
|
|
62
|
-
"engines": {
|
|
63
|
-
"node": ">=12.0"
|
|
63
|
+
"url": "git+https://github.com/codecollab-co/infra-cost.git"
|
|
64
64
|
},
|
|
65
65
|
"bugs": {
|
|
66
66
|
"url": "https://github.com/codecollab-co/infra-cost/issues"
|
|
67
67
|
},
|
|
68
|
-
"homepage": "https://github.com/codecollab-co/infra-cost
|
|
68
|
+
"homepage": "https://github.com/codecollab-co/infra-cost#readme",
|
|
69
|
+
"license": "MIT",
|
|
70
|
+
"engines": {
|
|
71
|
+
"node": ">=20.0.0",
|
|
72
|
+
"npm": ">=10.0.0"
|
|
73
|
+
},
|
|
69
74
|
"dependencies": {
|
|
70
|
-
"@aws-sdk/client-budgets": "^3.
|
|
71
|
-
"@aws-sdk/client-cost-explorer": "^3.
|
|
72
|
-
"@aws-sdk/client-ec2": "^3.
|
|
73
|
-
"@aws-sdk/client-
|
|
74
|
-
"@aws-sdk/client-
|
|
75
|
-
"@aws-sdk/client-
|
|
76
|
-
"@aws-sdk/client-
|
|
77
|
-
"@aws-sdk/client-
|
|
78
|
-
"@aws-sdk/
|
|
79
|
-
"@aws-sdk/
|
|
80
|
-
"
|
|
81
|
-
"chalk": "^
|
|
75
|
+
"@aws-sdk/client-budgets": "^3.750.0",
|
|
76
|
+
"@aws-sdk/client-cost-explorer": "^3.750.0",
|
|
77
|
+
"@aws-sdk/client-ec2": "^3.750.0",
|
|
78
|
+
"@aws-sdk/client-elastic-load-balancing-v2": "^3.750.0",
|
|
79
|
+
"@aws-sdk/client-iam": "^3.750.0",
|
|
80
|
+
"@aws-sdk/client-lambda": "^3.750.0",
|
|
81
|
+
"@aws-sdk/client-rds": "^3.750.0",
|
|
82
|
+
"@aws-sdk/client-s3": "^3.750.0",
|
|
83
|
+
"@aws-sdk/client-sts": "^3.750.0",
|
|
84
|
+
"@aws-sdk/credential-providers": "^3.750.0",
|
|
85
|
+
"@slack/web-api": "^7.5.0",
|
|
86
|
+
"chalk": "^4.1.2",
|
|
82
87
|
"cli-progress": "^3.12.0",
|
|
83
88
|
"cli-table3": "^0.6.5",
|
|
84
|
-
"commander": "^
|
|
85
|
-
"dayjs": "^1.11.
|
|
86
|
-
"dotenv": "^16.0.3",
|
|
89
|
+
"commander": "^12.1.0",
|
|
90
|
+
"dayjs": "^1.11.19",
|
|
87
91
|
"exceljs": "^4.4.0",
|
|
88
|
-
"express": "^5.1
|
|
92
|
+
"express": "^5.2.1",
|
|
93
|
+
"fd-slicer": "^1.1.0",
|
|
94
|
+
"ini": "^6.0.0",
|
|
89
95
|
"moment": "^2.30.1",
|
|
90
|
-
"node-fetch": "^
|
|
91
|
-
"ora": "^
|
|
92
|
-
"
|
|
93
|
-
"
|
|
96
|
+
"node-fetch": "^2.7.0",
|
|
97
|
+
"ora": "^9.1.0",
|
|
98
|
+
"pako": "^2.1.0",
|
|
99
|
+
"pend": "^1.2.0",
|
|
100
|
+
"yauzl": "^3.0.0",
|
|
101
|
+
"zod": "^3.23.8"
|
|
94
102
|
},
|
|
95
103
|
"devDependencies": {
|
|
96
|
-
"@types/
|
|
97
|
-
"@types/
|
|
98
|
-
"@types/
|
|
99
|
-
"@
|
|
100
|
-
"@
|
|
101
|
-
"
|
|
104
|
+
"@types/jest": "^29.5.12",
|
|
105
|
+
"@types/node": "^22.5.4",
|
|
106
|
+
"@types/yauzl": "^2.10.3",
|
|
107
|
+
"@typescript-eslint/eslint-plugin": "^8.5.0",
|
|
108
|
+
"@typescript-eslint/parser": "^8.5.0",
|
|
109
|
+
"eslint": "^8.57.0",
|
|
110
|
+
"jest": "^29.7.0",
|
|
102
111
|
"npm-run-all": "^4.1.5",
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
"tsup": "^6.5.0",
|
|
107
|
-
"typescript": "^4.9.4"
|
|
108
|
-
},
|
|
109
|
-
"peerDependencies": {
|
|
110
|
-
"@alicloud/pop-core": "^1.7.12",
|
|
111
|
-
"@azure/arm-costmanagement": "^1.0.0",
|
|
112
|
-
"@azure/arm-subscriptions": "^5.1.0",
|
|
113
|
-
"@azure/identity": "^3.1.0",
|
|
114
|
-
"@google-cloud/billing": "^4.1.0",
|
|
115
|
-
"@google-cloud/resource-manager": "^5.1.0",
|
|
116
|
-
"oci-sdk": "^2.69.0"
|
|
112
|
+
"ts-jest": "^29.2.5",
|
|
113
|
+
"tsup": "^6.7.0",
|
|
114
|
+
"typescript": "^5.6.2"
|
|
117
115
|
},
|
|
118
|
-
"
|
|
119
|
-
"
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
"
|
|
127
|
-
|
|
128
|
-
"
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
"
|
|
133
|
-
|
|
134
|
-
"@alicloud/pop-core": {
|
|
135
|
-
"optional": true
|
|
136
|
-
},
|
|
137
|
-
"oci-sdk": {
|
|
138
|
-
"optional": true
|
|
139
|
-
}
|
|
116
|
+
"jest": {
|
|
117
|
+
"preset": "ts-jest",
|
|
118
|
+
"testEnvironment": "node",
|
|
119
|
+
"testMatch": [
|
|
120
|
+
"**/tests/**/*.test.ts"
|
|
121
|
+
],
|
|
122
|
+
"collectCoverageFrom": [
|
|
123
|
+
"src/**/*.ts",
|
|
124
|
+
"!src/**/*.d.ts"
|
|
125
|
+
],
|
|
126
|
+
"coverageDirectory": "coverage",
|
|
127
|
+
"coverageReporters": [
|
|
128
|
+
"text",
|
|
129
|
+
"lcov",
|
|
130
|
+
"html"
|
|
131
|
+
]
|
|
140
132
|
}
|
|
141
133
|
}
|