@obinexusmk2/hypernum 0.1.0 → 0.1.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 -21
- package/README.md +355 -256
- package/dist/index.cjs +4 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -7
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/dist/types/{config → src/config}/config-loader.d.ts +0 -0
- package/dist/types/src/config/config-loader.d.ts.map +1 -0
- package/dist/types/{config → src/config}/config-parser.d.ts +0 -0
- package/dist/types/src/config/config-parser.d.ts.map +1 -0
- package/dist/types/{config → src/config}/config-resolver.d.ts +0 -0
- package/dist/types/src/config/config-resolver.d.ts.map +1 -0
- package/dist/types/{config → src/config}/config-source.d.ts +0 -0
- package/dist/types/src/config/config-source.d.ts.map +1 -0
- package/dist/types/{config → src/config}/index.d.ts +0 -0
- package/dist/types/src/config/index.d.ts.map +1 -0
- package/dist/types/{core → src/core}/common.d.ts +0 -0
- package/dist/types/src/core/common.d.ts.map +1 -0
- package/dist/types/{core → src/core}/config.d.ts +0 -0
- package/dist/types/src/core/config.d.ts.map +1 -0
- package/dist/types/{core → src/core}/constants.d.ts +0 -0
- package/dist/types/src/core/constants.d.ts.map +1 -0
- package/dist/types/{core → src/core}/errors.d.ts +0 -0
- package/dist/types/src/core/errors.d.ts.map +1 -0
- package/dist/types/{core → src/core}/hypernum.d.ts +0 -0
- package/dist/types/src/core/hypernum.d.ts.map +1 -0
- package/dist/types/{core → src/core}/index.d.ts +0 -0
- package/dist/types/src/core/index.d.ts.map +1 -0
- package/dist/types/{index.d.ts → src/index.d.ts} +1 -1
- package/dist/types/src/index.d.ts.map +1 -0
- package/dist/types/{operations → src/operations}/arithmetic.d.ts +0 -0
- package/dist/types/src/operations/arithmetic.d.ts.map +1 -0
- package/dist/types/{operations → src/operations}/bitwise.d.ts +0 -0
- package/dist/types/src/operations/bitwise.d.ts.map +1 -0
- package/dist/types/{operations → src/operations}/comparison.d.ts +0 -0
- package/dist/types/src/operations/comparison.d.ts.map +1 -0
- package/dist/types/{operations → src/operations}/conversion.d.ts +0 -0
- package/dist/types/src/operations/conversion.d.ts.map +1 -0
- package/dist/types/{operations → src/operations}/factorial.d.ts +0 -0
- package/dist/types/src/operations/factorial.d.ts.map +1 -0
- package/dist/types/{operations → src/operations}/index.d.ts +0 -0
- package/dist/types/src/operations/index.d.ts.map +1 -0
- package/dist/types/{operations → src/operations}/power.d.ts +0 -0
- package/dist/types/src/operations/power.d.ts.map +1 -0
- package/dist/types/{storage → src/storage}/Heap.d.ts +0 -0
- package/dist/types/src/storage/Heap.d.ts.map +1 -0
- package/dist/types/{storage → src/storage}/index.d.ts +0 -0
- package/dist/types/src/storage/index.d.ts.map +1 -0
- package/dist/types/{structures → src/structures}/ackermann.d.ts +0 -0
- package/dist/types/src/structures/ackermann.d.ts.map +1 -0
- package/dist/types/{structures → src/structures}/big-array.d.ts +0 -0
- package/dist/types/src/structures/big-array.d.ts.map +1 -0
- package/dist/types/{structures → src/structures}/index.d.ts +0 -0
- package/dist/types/src/structures/index.d.ts.map +1 -0
- package/dist/types/{structures → src/structures}/number-tree.d.ts +0 -0
- package/dist/types/src/structures/number-tree.d.ts.map +1 -0
- package/dist/types/{structures → src/structures}/power-tower.d.ts +0 -0
- package/dist/types/src/structures/power-tower.d.ts.map +1 -0
- package/dist/types/{utils → src/utils}/formatting.d.ts +0 -0
- package/dist/types/src/utils/formatting.d.ts.map +1 -0
- package/dist/types/{utils → src/utils}/index.d.ts +0 -0
- package/dist/types/src/utils/index.d.ts.map +1 -0
- package/dist/types/{utils → src/utils}/parser.d.ts +0 -0
- package/dist/types/src/utils/parser.d.ts.map +1 -0
- package/dist/types/{utils → src/utils}/precision.d.ts +0 -0
- package/dist/types/src/utils/precision.d.ts.map +1 -0
- package/dist/types/{utils → src/utils}/validation.d.ts +0 -0
- package/dist/types/src/utils/validation.d.ts.map +1 -0
- package/package.json +169 -164
- package/rollup.config.js +163 -161
- package/src/cli/hypernum.js +272 -0
- package/src/config/config-loader.ts +0 -0
- package/src/config/config-parser.ts +160 -160
- package/src/config/config-resolver.ts +0 -0
- package/src/config/config-source.ts +0 -0
- package/src/config/index.ts +0 -0
- package/src/core/common.ts +184 -184
- package/src/core/config.ts +392 -392
- package/src/core/constants.ts +101 -101
- package/src/core/errors.ts +202 -202
- package/src/core/hypernum.ts +240 -240
- package/src/core/index.ts +4 -4
- package/src/index.ts +179 -182
- package/src/operations/arithmetic.ts +332 -332
- package/src/operations/bitwise.ts +366 -366
- package/src/operations/comparison.ts +271 -271
- package/src/operations/conversion.ts +399 -399
- package/src/operations/factorial.ts +278 -278
- package/src/operations/index.ts +4 -4
- package/src/operations/power.ts +315 -315
- package/src/storage/Heap.ts +237 -237
- package/src/storage/index.ts +0 -0
- package/src/structures/ackermann.ts +232 -232
- package/src/structures/big-array.ts +305 -305
- package/src/structures/index.ts +3 -3
- package/src/structures/number-tree.ts +403 -403
- package/src/structures/power-tower.ts +277 -277
- package/src/types/common.d.ts +356 -356
- package/src/types/core.d.ts +160 -160
- package/src/types/index.d.ts +1 -1
- package/src/utils/formatting.ts +245 -245
- package/src/utils/index.ts +4 -4
- package/src/utils/parser.ts +244 -244
- package/src/utils/precision.ts +216 -216
- package/src/utils/validation.ts +182 -182
- package/tsconfig.json +83 -83
- package/dist/types/config/config-loader.d.ts.map +0 -1
- package/dist/types/config/config-parser.d.ts.map +0 -1
- package/dist/types/config/config-resolver.d.ts.map +0 -1
- package/dist/types/config/config-source.d.ts.map +0 -1
- package/dist/types/config/index.d.ts.map +0 -1
- package/dist/types/core/common.d.ts.map +0 -1
- package/dist/types/core/config.d.ts.map +0 -1
- package/dist/types/core/constants.d.ts.map +0 -1
- package/dist/types/core/errors.d.ts.map +0 -1
- package/dist/types/core/hypernum.d.ts.map +0 -1
- package/dist/types/core/index.d.ts.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/operations/arithmetic.d.ts.map +0 -1
- package/dist/types/operations/bitwise.d.ts.map +0 -1
- package/dist/types/operations/comparison.d.ts.map +0 -1
- package/dist/types/operations/conversion.d.ts.map +0 -1
- package/dist/types/operations/factorial.d.ts.map +0 -1
- package/dist/types/operations/index.d.ts.map +0 -1
- package/dist/types/operations/power.d.ts.map +0 -1
- package/dist/types/storage/Heap.d.ts.map +0 -1
- package/dist/types/storage/index.d.ts.map +0 -1
- package/dist/types/structures/ackermann.d.ts.map +0 -1
- package/dist/types/structures/big-array.d.ts.map +0 -1
- package/dist/types/structures/index.d.ts.map +0 -1
- package/dist/types/structures/number-tree.d.ts.map +0 -1
- package/dist/types/structures/power-tower.d.ts.map +0 -1
- package/dist/types/utils/formatting.d.ts.map +0 -1
- package/dist/types/utils/index.d.ts.map +0 -1
- package/dist/types/utils/parser.d.ts.map +0 -1
- package/dist/types/utils/precision.d.ts.map +0 -1
- package/dist/types/utils/validation.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,164 +1,169 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@obinexusmk2/hypernum",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "A high-precision mathematics library for large number operations with BigInt support, custom data structures, and comprehensive type safety",
|
|
5
|
-
"main": "dist/index.cjs",
|
|
6
|
-
"module": "dist/index.js",
|
|
7
|
-
"types": "dist/index.d.ts",
|
|
8
|
-
"browser": "dist/index.umd.js",
|
|
9
|
-
"unpkg": "dist/index.umd.js",
|
|
10
|
-
"cdn": "dist/index.umd.js",
|
|
11
|
-
"sideEffects": false,
|
|
12
|
-
"type": "module",
|
|
13
|
-
"exports": {
|
|
14
|
-
".": {
|
|
15
|
-
"types": "./dist/index.d.ts",
|
|
16
|
-
"import": "./dist/index.js",
|
|
17
|
-
"require": "./dist/index.cjs",
|
|
18
|
-
"default": "./dist/index.js"
|
|
19
|
-
},
|
|
20
|
-
"./package.json": "./package.json"
|
|
21
|
-
},
|
|
22
|
-
"files": [
|
|
23
|
-
"dist",
|
|
24
|
-
"src",
|
|
25
|
-
"README.md",
|
|
26
|
-
"LICENSE",
|
|
27
|
-
"CHANGELOG.md",
|
|
28
|
-
"rollup.config.js",
|
|
29
|
-
"tsconfig.json"
|
|
30
|
-
],
|
|
31
|
-
"scripts": {
|
|
32
|
-
"build": "rollup -c",
|
|
33
|
-
"dev": "rollup -c -w",
|
|
34
|
-
"clean": "rimraf dist coverage .nyc_output",
|
|
35
|
-
"prebuild": "npm run clean",
|
|
36
|
-
"prepack": "npm run build",
|
|
37
|
-
"test": "jest --coverage",
|
|
38
|
-
"test:watch": "jest --watch",
|
|
39
|
-
"test:ci": "jest --ci --coverage --runInBand",
|
|
40
|
-
"lint": "eslint src --ext .ts",
|
|
41
|
-
"lint:fix": "eslint src --ext .ts --fix",
|
|
42
|
-
"format": "prettier --write \"src/**/*.ts\"",
|
|
43
|
-
"prepare": "npm run build",
|
|
44
|
-
"docs": "typedoc --out docs src",
|
|
45
|
-
"benchmark": "ts-node benchmark/index.ts",
|
|
46
|
-
"release": "standard-version",
|
|
47
|
-
"commit": "git-cz"
|
|
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
|
-
"@rollup/plugin-
|
|
90
|
-
"@rollup/plugin-
|
|
91
|
-
"@rollup/plugin-
|
|
92
|
-
"@
|
|
93
|
-
"@
|
|
94
|
-
"@types/
|
|
95
|
-
"@
|
|
96
|
-
"@
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"eslint
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
"rollup
|
|
110
|
-
"rollup-plugin-
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
"
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
"
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
"
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
"
|
|
150
|
-
"
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
"
|
|
158
|
-
"
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@obinexusmk2/hypernum",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "A high-precision mathematics library for large number operations with BigInt support, custom data structures, and comprehensive type safety",
|
|
5
|
+
"main": "dist/index.cjs",
|
|
6
|
+
"module": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"browser": "dist/index.umd.js",
|
|
9
|
+
"unpkg": "dist/index.umd.js",
|
|
10
|
+
"cdn": "dist/index.umd.js",
|
|
11
|
+
"sideEffects": false,
|
|
12
|
+
"type": "module",
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"import": "./dist/index.js",
|
|
17
|
+
"require": "./dist/index.cjs",
|
|
18
|
+
"default": "./dist/index.js"
|
|
19
|
+
},
|
|
20
|
+
"./package.json": "./package.json"
|
|
21
|
+
},
|
|
22
|
+
"files": [
|
|
23
|
+
"dist",
|
|
24
|
+
"src",
|
|
25
|
+
"README.md",
|
|
26
|
+
"LICENSE",
|
|
27
|
+
"CHANGELOG.md",
|
|
28
|
+
"rollup.config.js",
|
|
29
|
+
"tsconfig.json"
|
|
30
|
+
],
|
|
31
|
+
"scripts": {
|
|
32
|
+
"build": "rollup -c",
|
|
33
|
+
"dev": "rollup -c -w",
|
|
34
|
+
"clean": "rimraf dist coverage .nyc_output",
|
|
35
|
+
"prebuild": "npm run clean",
|
|
36
|
+
"prepack": "npm run build",
|
|
37
|
+
"test": "jest --coverage",
|
|
38
|
+
"test:watch": "jest --watch",
|
|
39
|
+
"test:ci": "jest --ci --coverage --runInBand",
|
|
40
|
+
"lint": "eslint src --ext .ts",
|
|
41
|
+
"lint:fix": "eslint src --ext .ts --fix",
|
|
42
|
+
"format": "prettier --write \"src/**/*.ts\"",
|
|
43
|
+
"prepare": "npm run build",
|
|
44
|
+
"docs": "typedoc --out docs src",
|
|
45
|
+
"benchmark": "ts-node benchmark/index.ts",
|
|
46
|
+
"release": "standard-version",
|
|
47
|
+
"commit": "git-cz",
|
|
48
|
+
"link": "npm link",
|
|
49
|
+
"install-global": "npm install -g ."
|
|
50
|
+
},
|
|
51
|
+
"keywords": [
|
|
52
|
+
"bigint",
|
|
53
|
+
"large-numbers",
|
|
54
|
+
"arithmetic",
|
|
55
|
+
"mathematics",
|
|
56
|
+
"computation",
|
|
57
|
+
"data-structures",
|
|
58
|
+
"typescript",
|
|
59
|
+
"javascript",
|
|
60
|
+
"number-theory",
|
|
61
|
+
"high-precision",
|
|
62
|
+
"ackermann",
|
|
63
|
+
"tetration",
|
|
64
|
+
"avl-tree",
|
|
65
|
+
"power-tower"
|
|
66
|
+
],
|
|
67
|
+
"author": "Obi Nexus Computing <contact@obinexusmk2.com> (https://obinexusmk2.com)",
|
|
68
|
+
"funding": {
|
|
69
|
+
"type": "individual",
|
|
70
|
+
"url": "https://www.buymeacoffee.com/obinexusmk2"
|
|
71
|
+
},
|
|
72
|
+
"license": "ISC",
|
|
73
|
+
"repository": {
|
|
74
|
+
"type": "git",
|
|
75
|
+
"url": "git+https://github.com/obinexusmk2/hypernum.git"
|
|
76
|
+
},
|
|
77
|
+
"bugs": {
|
|
78
|
+
"url": "https://github.com/obinexusmk2/hypernum/issues"
|
|
79
|
+
},
|
|
80
|
+
"homepage": "https://obinexusmk2.github.io/hypernum",
|
|
81
|
+
"dependencies": {
|
|
82
|
+
"find-up": "^5.0.0",
|
|
83
|
+
"rc": "^1.2.8",
|
|
84
|
+
"tslib": "^2.6.0"
|
|
85
|
+
},
|
|
86
|
+
"devDependencies": {
|
|
87
|
+
"@commitlint/cli": "^18.0.0",
|
|
88
|
+
"@commitlint/config-conventional": "^18.0.0",
|
|
89
|
+
"@rollup/plugin-alias": "^5.0.0",
|
|
90
|
+
"@rollup/plugin-commonjs": "^29.0.0",
|
|
91
|
+
"@rollup/plugin-json": "^6.0.0",
|
|
92
|
+
"@rollup/plugin-node-resolve": "^15.0.0",
|
|
93
|
+
"@rollup/plugin-terser": "^1.0.0",
|
|
94
|
+
"@types/jest": "^29.0.0",
|
|
95
|
+
"@types/node": "^20.0.0",
|
|
96
|
+
"@types/rc": "^1.2.1",
|
|
97
|
+
"@typescript-eslint/eslint-plugin": "^6.0.0",
|
|
98
|
+
"@typescript-eslint/parser": "^6.0.0",
|
|
99
|
+
"commitizen": "^4.2.4",
|
|
100
|
+
"cz-conventional-changelog": "^3.3.0",
|
|
101
|
+
"eslint": "^8.0.0",
|
|
102
|
+
"eslint-config-prettier": "^6.15.0",
|
|
103
|
+
"eslint-plugin-prettier": "^2.7.0",
|
|
104
|
+
"husky": "^8.0.0",
|
|
105
|
+
"jest": "^30.3.0",
|
|
106
|
+
"lint-staged": "^15.0.0",
|
|
107
|
+
"prettier": "^3.0.0",
|
|
108
|
+
"rimraf": "^5.0.0",
|
|
109
|
+
"rollup": "^4.0.0",
|
|
110
|
+
"rollup-plugin-copy": "^2.0.1",
|
|
111
|
+
"rollup-plugin-dts": "^6.0.0",
|
|
112
|
+
"rollup-plugin-typescript2": "^0.36.0",
|
|
113
|
+
"standard-version": "^9.5.0",
|
|
114
|
+
"ts-jest": "^29.4.6",
|
|
115
|
+
"ts-node": "^10.0.0",
|
|
116
|
+
"typedoc": "^0.28.17",
|
|
117
|
+
"typescript": "^5.0.0"
|
|
118
|
+
},
|
|
119
|
+
"peerDependencies": {
|
|
120
|
+
"typescript": ">=4.5.0"
|
|
121
|
+
},
|
|
122
|
+
"engines": {
|
|
123
|
+
"node": ">=16.0.0"
|
|
124
|
+
},
|
|
125
|
+
"config": {
|
|
126
|
+
"commitizen": {
|
|
127
|
+
"path": "cz-conventional-changelog"
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
"lint-staged": {
|
|
131
|
+
"*.ts": [
|
|
132
|
+
"eslint --fix",
|
|
133
|
+
"prettier --write"
|
|
134
|
+
]
|
|
135
|
+
},
|
|
136
|
+
"jest": {
|
|
137
|
+
"preset": "ts-jest",
|
|
138
|
+
"testEnvironment": "node",
|
|
139
|
+
"testMatch": [
|
|
140
|
+
"<rootDir>/src/**/*.test.ts"
|
|
141
|
+
],
|
|
142
|
+
"collectCoverageFrom": [
|
|
143
|
+
"src/**/*.ts",
|
|
144
|
+
"!src/**/*.d.ts",
|
|
145
|
+
"!src/**/*.test.ts"
|
|
146
|
+
],
|
|
147
|
+
"coverageThreshold": {
|
|
148
|
+
"global": {
|
|
149
|
+
"branches": 80,
|
|
150
|
+
"functions": 80,
|
|
151
|
+
"lines": 80,
|
|
152
|
+
"statements": 80
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
"prettier": {
|
|
157
|
+
"semi": true,
|
|
158
|
+
"singleQuote": true,
|
|
159
|
+
"trailingComma": "es5",
|
|
160
|
+
"printWidth": 80
|
|
161
|
+
},
|
|
162
|
+
"directories": {
|
|
163
|
+
"doc": "docs",
|
|
164
|
+
"example": "examples"
|
|
165
|
+
},
|
|
166
|
+
"bin": {
|
|
167
|
+
"hypernum": "./src/cli/hypernum.js"
|
|
168
|
+
}
|
|
169
|
+
}
|