@yamato-daiwa/es-extensions-nodejs 0.0.1 → 1.5.0-alpha.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/Distributable/ConsoleApplicationLogger.d.ts +47 -0
- package/Distributable/ConsoleApplicationLogger.js +416 -0
- package/Distributable/ConsoleCommandsParser/ConsoleCommandsParser.d.ts +160 -0
- package/Distributable/ConsoleCommandsParser/ConsoleCommandsParser.js +495 -0
- package/Distributable/ConsoleCommandsParser/ConsoleCommandsParserLocalization.english.d.ts +3 -0
- package/Distributable/ConsoleCommandsParser/ConsoleCommandsParserLocalization.english.js +51 -0
- package/Distributable/DateTime/NodeJS_Timer.d.ts +1 -1
- package/Distributable/DateTime/NodeJS_Timer.js +7 -4
- package/Distributable/Logging/Errors/InvalidConsoleCommandError.d.ts +23 -0
- package/Distributable/Logging/Errors/InvalidConsoleCommandError.js +27 -0
- package/Distributable/Logging/Errors/InvalidConsoleCommandErrorLocalization__English.d.ts +3 -0
- package/Distributable/Logging/Errors/InvalidConsoleCommandErrorLocalization__English.js +11 -0
- package/Distributable/index.d.ts +5 -3
- package/Distributable/index.js +15 -3
- package/README.md +13 -2
- package/package.json +22 -13
- package/tsconfig.test.json +0 -4
package/Distributable/index.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @yamato-daiwa/es-extensions-nodejs
|
|
2
|
+
* @yamato-daiwa/es-extensions-nodejs v1.5
|
|
3
3
|
* (c) 2021 Sole proprietorship "Yamato Daiwa" Takeshi Tokugawa
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
|
|
7
|
-
export {
|
|
6
|
+
export { default as NodeJS_Timer } from "./DateTime/NodeJS_Timer";
|
|
7
|
+
export { default as ConsoleApplicationLogger } from "./ConsoleApplicationLogger";
|
|
8
|
+
export { default as ConsoleCommandsParser } from "./ConsoleCommandsParser/ConsoleCommandsParser";
|
|
9
|
+
export { default as InvalidConsoleCommandError } from "./Logging/Errors/InvalidConsoleCommandError";
|
package/Distributable/index.js
CHANGED
|
@@ -1,7 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/*!
|
|
2
|
-
* @yamato-daiwa/es-extensions-nodejs
|
|
3
|
+
* @yamato-daiwa/es-extensions-nodejs v1.5
|
|
3
4
|
* (c) 2021 Sole proprietorship "Yamato Daiwa" Takeshi Tokugawa
|
|
4
5
|
* Released under the MIT License.
|
|
5
6
|
*/
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
|
+
};
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.InvalidConsoleCommandError = exports.ConsoleCommandsParser = exports.ConsoleApplicationLogger = exports.NodeJS_Timer = void 0;
|
|
12
|
+
var NodeJS_Timer_1 = require("./DateTime/NodeJS_Timer");
|
|
13
|
+
Object.defineProperty(exports, "NodeJS_Timer", { enumerable: true, get: function () { return __importDefault(NodeJS_Timer_1).default; } });
|
|
14
|
+
var ConsoleApplicationLogger_1 = require("./ConsoleApplicationLogger");
|
|
15
|
+
Object.defineProperty(exports, "ConsoleApplicationLogger", { enumerable: true, get: function () { return __importDefault(ConsoleApplicationLogger_1).default; } });
|
|
16
|
+
var ConsoleCommandsParser_1 = require("./ConsoleCommandsParser/ConsoleCommandsParser");
|
|
17
|
+
Object.defineProperty(exports, "ConsoleCommandsParser", { enumerable: true, get: function () { return __importDefault(ConsoleCommandsParser_1).default; } });
|
|
18
|
+
var InvalidConsoleCommandError_1 = require("./Logging/Errors/InvalidConsoleCommandError");
|
|
19
|
+
Object.defineProperty(exports, "InvalidConsoleCommandError", { enumerable: true, get: function () { return __importDefault(InvalidConsoleCommandError_1).default; } });
|
package/README.md
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
# @yamato-daiwa/es-extensions
|
|
1
|
+
# @yamato-daiwa/es-extensions-nodejs
|
|
2
|
+
|
|
3
|
+
[]()
|
|
4
|
+
[](https://www.npmjs.com/package/@yamato-daiwa/es-extensions-nodejs)
|
|
2
5
|
|
|
3
6
|
Additional to [@yamato-daiwa/es-extensions](https://www.npmjs.com/package/@yamato-daiwa/es-extensions) functionality
|
|
4
7
|
for Node.js environment. Helper functions and classes aimed to reduce the routine code.
|
|
@@ -8,5 +11,13 @@ Build-in TypeScript type safety without `any` type.
|
|
|
8
11
|
## Installation
|
|
9
12
|
|
|
10
13
|
```
|
|
11
|
-
npm i @yamato-daiwa/es-extensions-nodejs -E
|
|
14
|
+
npm i @yamato-daiwa/es-extensions-nodejs @yamato-daiwa/es-extensions -E
|
|
12
15
|
```
|
|
16
|
+
|
|
17
|
+
## Functionality
|
|
18
|
+
|
|
19
|
+
* [📖 **ConsoleCommandsParser**](Documentation/ConsoleCommandsParser/ConsoleCommandsParser.md) Parsing and validating of CLI commands.
|
|
20
|
+
* [📖 **ConsoleApplicationLogger**](Documentation/Logging/ConsoleApplicationLogger/ConsoleApplicationLogger.md) The implementation of
|
|
21
|
+
**ILogger** interface for Node.js environment.
|
|
22
|
+
* Errors
|
|
23
|
+
* **InvalidConsoleCommandError** - intended to be thrown the inputted console command does not satisfy to valid schema.
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yamato-daiwa/es-extensions-nodejs",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.5.0-alpha.1",
|
|
4
4
|
"description": "Additional to @yamato-daiwa/es-extensions functionality for Node.js environment. Helper functions and classes aimed to reduce the routine code. Build-in TypeScript type safety.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"nodejs",
|
|
7
|
+
"typescript",
|
|
7
8
|
"utils",
|
|
8
9
|
"logger"
|
|
9
10
|
],
|
|
@@ -14,29 +15,37 @@
|
|
|
14
15
|
"license": "MIT",
|
|
15
16
|
"repository": {
|
|
16
17
|
"type": "git",
|
|
17
|
-
"url": "https://github.com/TokugawaTakeshi/
|
|
18
|
+
"url": "https://github.com/TokugawaTakeshi/Yamato-Daiwa-ES-Extensions.git"
|
|
18
19
|
},
|
|
19
20
|
"bugs": {
|
|
20
|
-
"url": "https://github.com/TokugawaTakeshi/
|
|
21
|
+
"url": "https://github.com/TokugawaTakeshi/Yamato-Daiwa-ES-Extensions.git/issues",
|
|
21
22
|
"email": "tokugawa.takesi@gmail.com"
|
|
22
23
|
},
|
|
23
24
|
"main": "./Distributable/index.js",
|
|
24
25
|
"types": "./Distributable/index.d.ts",
|
|
26
|
+
"files": [
|
|
27
|
+
"Distributable"
|
|
28
|
+
],
|
|
25
29
|
"devDependencies": {
|
|
26
|
-
"@types/
|
|
27
|
-
"@types/
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
30
|
+
"@types/json5": "0.0.30",
|
|
31
|
+
"@types/mocha": "9.1.0",
|
|
32
|
+
"@types/node": "16.10.2",
|
|
33
|
+
"del-cli": "4.0.1",
|
|
34
|
+
"mocha": "9.2.2",
|
|
35
|
+
"ts-node": "10.7.0",
|
|
36
|
+
"typescript": "4.6.2",
|
|
37
|
+
"yamato-daiwa_code_quality_management": "0.3.0"
|
|
38
|
+
},
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"@yamato-daiwa/es-extensions": "1.4.5",
|
|
41
|
+
"json5": "2.2.0"
|
|
32
42
|
},
|
|
33
43
|
"engines": {
|
|
34
44
|
"node": ">=10.4.0"
|
|
35
45
|
},
|
|
36
46
|
"scripts": {
|
|
37
|
-
"
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
"@yamato-daiwa/es-extensions": "1.0.1"
|
|
47
|
+
"Rebuild distributable": "rimraf Distributable & tsc",
|
|
48
|
+
"Lint": "eslint Source Tests",
|
|
49
|
+
"Rebuild distributable and realize alpha": "npm run \"Rebuild distributable\" && npm publish --tag alpha"
|
|
41
50
|
}
|
|
42
51
|
}
|
package/tsconfig.test.json
DELETED