@geeko/log 1.0.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Metwas
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 @@
1
+ # Geeko Log
@@ -0,0 +1,2 @@
1
+ export declare const LOG_OPTIONS_PROVIDER: string;
2
+ export declare const LOG_TEMPLATE_PROVIDER: string;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LOG_TEMPLATE_PROVIDER = exports.LOG_OPTIONS_PROVIDER = void 0;
4
+ exports.LOG_OPTIONS_PROVIDER = "LOG_OPTIONS_PROVIDER";
5
+ exports.LOG_TEMPLATE_PROVIDER = "LOG_TEMPLATE_PROVIDER";
@@ -0,0 +1,7 @@
1
+ import { Badge, Template } from "../types/LogOptions";
2
+ export declare const appBadge: Badge;
3
+ export declare const processBadge: Badge;
4
+ export declare const timestampBadge: Badge;
5
+ export declare const messageBadge: Badge;
6
+ export declare const titleBadge: Badge;
7
+ export declare const GeekoBadgeTemplate: Template;
@@ -0,0 +1,115 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.GeekoBadgeTemplate = exports.titleBadge = exports.messageBadge = exports.timestampBadge = exports.processBadge = exports.appBadge = void 0;
37
+ const strings_1 = require("../tools/strings");
38
+ const chalk = __importStar(require("chalk"));
39
+ exports.appBadge = {
40
+ tag: "Geeko",
41
+ style: (text, options) => {
42
+ const level = options?.level;
43
+ text = ` ${text} `;
44
+ switch (level) {
45
+ case "error":
46
+ return chalk.bgRedBright.black.bold(text);
47
+ case "verbose":
48
+ return chalk.bgMagentaBright.black.bold(text);
49
+ case "warn":
50
+ return chalk.bgYellow.black.bold(text);
51
+ default:
52
+ return chalk.bgGreenBright.black.bold(text);
53
+ }
54
+ ;
55
+ }
56
+ };
57
+ exports.processBadge = {
58
+ tag: "process",
59
+ style: (text, options) => {
60
+ return chalk.blackBright(process.pid);
61
+ }
62
+ };
63
+ exports.timestampBadge = {
64
+ key: "timestamp",
65
+ style: (text, options) => {
66
+ return text;
67
+ }
68
+ };
69
+ exports.messageBadge = {
70
+ key: "message",
71
+ style: (text, options) => {
72
+ if (typeof text === "object") {
73
+ text = (0, strings_1.pretty)(text);
74
+ }
75
+ const level = options?.level;
76
+ switch (level) {
77
+ case "error":
78
+ return chalk.redBright(text);
79
+ case "verbose":
80
+ return chalk.magentaBright(text);
81
+ case "warn":
82
+ return chalk.yellow(text);
83
+ default:
84
+ return chalk.greenBright(text);
85
+ }
86
+ ;
87
+ }
88
+ };
89
+ exports.titleBadge = {
90
+ key: "title",
91
+ style: (text, options) => {
92
+ const level = options?.level;
93
+ text = ` ${text || options?.label || "-"} `;
94
+ switch (level) {
95
+ case "error":
96
+ return chalk.bgRedBright.black.bold(text);
97
+ case "verbose":
98
+ return chalk.bgMagentaBright.black.bold(text);
99
+ case "warn":
100
+ return chalk.bgYellow.black.bold(text);
101
+ default:
102
+ return chalk.bgGreenBright.black.bold(text);
103
+ }
104
+ ;
105
+ }
106
+ };
107
+ exports.GeekoBadgeTemplate = {
108
+ badges: [exports.appBadge, exports.processBadge, exports.timestampBadge, exports.titleBadge, exports.messageBadge],
109
+ gap: {
110
+ tag: " ",
111
+ style: (text, options) => {
112
+ return text;
113
+ }
114
+ }
115
+ };
package/dist/main.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ export * from "./types/LogConstructorOptions";
2
+ export * from "./services/LogService";
3
+ export * from "./types/LogOptions";
4
+ export * from "./tools/logger";
package/dist/main.js ADDED
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types/LogConstructorOptions"), exports);
18
+ __exportStar(require("./services/LogService"), exports);
19
+ __exportStar(require("./types/LogOptions"), exports);
20
+ __exportStar(require("./tools/logger"), exports);
@@ -0,0 +1,23 @@
1
+ import { LogConstructorOptions } from "../types/LogConstructorOptions";
2
+ export declare const CLI_SHIFT_UP: string;
3
+ export declare const CLI_CLEAR_LINE: string;
4
+ export declare class LogService {
5
+ constructor(options?: LogConstructorOptions);
6
+ private _title;
7
+ private _level;
8
+ private _logger;
9
+ private _template;
10
+ private _spinner;
11
+ private _loading;
12
+ info(message: string): void;
13
+ warn(message: string): void;
14
+ verbose(message: string): void;
15
+ error(error: Error | string): void;
16
+ debug(message: string): void;
17
+ format(formatter: any): void;
18
+ getMetadata(): any;
19
+ setTitle(title: string): void;
20
+ branch(title: string, options?: LogConstructorOptions): LogService;
21
+ spinner(enabled?: boolean, marker?: string): void;
22
+ private _log;
23
+ }
@@ -0,0 +1,105 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LogService = exports.CLI_CLEAR_LINE = exports.CLI_SHIFT_UP = void 0;
4
+ const logger_1 = require("../tools/logger");
5
+ const ConsoleTransport_1 = require("../transports/ConsoleTransport");
6
+ const nanospinner_1 = require("nanospinner");
7
+ const winston_1 = require("winston");
8
+ exports.CLI_SHIFT_UP = "\x1B[1A";
9
+ exports.CLI_CLEAR_LINE = "\x1B[2K";
10
+ class LogService {
11
+ constructor(options) {
12
+ this._logger = options?.logger ?? (0, winston_1.createLogger)({
13
+ level: options?.level ?? "info",
14
+ transports: [
15
+ new ConsoleTransport_1.SonicConsoleTransport()
16
+ ]
17
+ });
18
+ this._template = options?.template ?? logger_1.appBadgeTemplate;
19
+ this._title = options?.title ?? "App";
20
+ this._level = options?.level ?? "info";
21
+ this.format((0, logger_1.createDefaultLogger)(this._title));
22
+ if (options?.level !== "debug") {
23
+ process.removeAllListeners("warning");
24
+ }
25
+ }
26
+ _title = "App";
27
+ _level = "info";
28
+ _logger = void 0;
29
+ _template = void 0;
30
+ _spinner = void 0;
31
+ _loading = false;
32
+ info(message) {
33
+ this._log("info", message);
34
+ }
35
+ warn(message) {
36
+ this._log("warn", message);
37
+ }
38
+ verbose(message) {
39
+ this._log("verbose", message);
40
+ }
41
+ error(error) {
42
+ this._log("error", (error?.["message"] ? error["message"] : error));
43
+ }
44
+ debug(message) {
45
+ this._log("debug", message);
46
+ }
47
+ format(formatter) {
48
+ if (this._logger) {
49
+ this._logger.format = formatter;
50
+ }
51
+ this._spinner = (0, nanospinner_1.createSpinner)(void 0, {
52
+ color: this._template?.accent ?? "green"
53
+ });
54
+ }
55
+ getMetadata() {
56
+ return {
57
+ template: this._template
58
+ };
59
+ }
60
+ setTitle(title) {
61
+ if (typeof title === "string") {
62
+ this._title = title;
63
+ this.format((0, logger_1.createDefaultLogger)(this._title));
64
+ }
65
+ }
66
+ branch(title, options) {
67
+ const metadata = this.getMetadata();
68
+ const parentTemplate = metadata?.["template"] || logger_1.appBadgeTemplate;
69
+ const logger = (0, winston_1.createLogger)({
70
+ transports: this._logger.transports.slice(0)
71
+ });
72
+ const logService = new LogService({
73
+ level: options?.level ?? this._level,
74
+ template: parentTemplate,
75
+ logger: logger,
76
+ title: title
77
+ });
78
+ return logService;
79
+ }
80
+ spinner(enabled, marker) {
81
+ this._loading = enabled;
82
+ if (enabled) {
83
+ this._spinner.start({
84
+ text: " "
85
+ });
86
+ }
87
+ else {
88
+ this._spinner.success({
89
+ mark: marker ?? " ",
90
+ text: " "
91
+ });
92
+ process.stdout.write(exports.CLI_SHIFT_UP);
93
+ process.stdout.write(exports.CLI_CLEAR_LINE);
94
+ }
95
+ }
96
+ _log(method, message) {
97
+ this._logger[method](message, this.getMetadata());
98
+ if (this._loading) {
99
+ this._spinner.update({ text: message });
100
+ process.stdout.write(exports.CLI_SHIFT_UP);
101
+ process.stdout.write(exports.CLI_CLEAR_LINE);
102
+ }
103
+ }
104
+ }
105
+ exports.LogService = LogService;
@@ -0,0 +1,15 @@
1
+ import { Badge, Template } from '../types/LogOptions';
2
+ export declare let JSON_TAB_SIZE: number;
3
+ export declare const createDefaultLogger: any;
4
+ export declare function echo<T>(value: T): T;
5
+ export declare const createTemplateString: any;
6
+ export declare const createBadgeString: any;
7
+ export declare const pretty: any;
8
+ export declare const appBadge: Badge;
9
+ export declare const processBadge: Badge;
10
+ export declare const paddingBadge: Badge;
11
+ export declare const timestampBadge: Badge;
12
+ export declare const messageBadge: Badge;
13
+ export declare const titleBadge: Badge;
14
+ export declare const appBadgeTemplate: Template;
15
+ export declare const textTemplate: Template;
@@ -0,0 +1,155 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.textTemplate = exports.appBadgeTemplate = exports.titleBadge = exports.messageBadge = exports.timestampBadge = exports.paddingBadge = exports.processBadge = exports.appBadge = exports.pretty = exports.createBadgeString = exports.createTemplateString = exports.createDefaultLogger = exports.JSON_TAB_SIZE = void 0;
7
+ exports.echo = echo;
8
+ const winston_1 = require("winston");
9
+ const chalk_1 = __importDefault(require("chalk"));
10
+ const { combine, timestamp, label, printf } = winston_1.format;
11
+ exports.JSON_TAB_SIZE = 4;
12
+ const defaultFormatter = printf(({ level, message, label, timestamp }) => {
13
+ return `${timestamp} [${label}] ${level}: ${message}`;
14
+ });
15
+ const createDefaultLogger = (header) => {
16
+ return combine(label({ label: header }), timestamp(), defaultFormatter);
17
+ };
18
+ exports.createDefaultLogger = createDefaultLogger;
19
+ function echo(value) {
20
+ return value;
21
+ }
22
+ ;
23
+ const createTemplateString = (template, artifacts) => {
24
+ const badges = template?.["badges"];
25
+ const length = Array.isArray(badges) ? badges.length : 0;
26
+ let index = 0;
27
+ let builder = "";
28
+ for (; index < length; index++) {
29
+ const badge = (0, exports.createBadgeString)(badges[index], artifacts);
30
+ if (typeof badge === "string") {
31
+ builder += badge;
32
+ builder += " ";
33
+ }
34
+ }
35
+ return builder;
36
+ };
37
+ exports.createTemplateString = createTemplateString;
38
+ const createBadgeString = (badge, artifacts) => {
39
+ const styling = typeof badge["style"] === "function" ? badge["style"] : echo;
40
+ const tag = artifacts?.[badge["key"]] || badge["tag"] || "";
41
+ return styling(tag, artifacts);
42
+ };
43
+ exports.createBadgeString = createBadgeString;
44
+ const pretty = (message) => {
45
+ return JSON.stringify(message, null, exports.JSON_TAB_SIZE);
46
+ };
47
+ exports.pretty = pretty;
48
+ exports.appBadge = {
49
+ tag: "App",
50
+ style: (text, options) => {
51
+ const level = options?.level;
52
+ text = ` ${text} `;
53
+ switch (level) {
54
+ case "error":
55
+ return chalk_1.default.bgRedBright.black.bold(text);
56
+ case "verbose":
57
+ case "debug":
58
+ return chalk_1.default.bgGray.black.bold(text);
59
+ case "warn":
60
+ return chalk_1.default.bgYellow.black.bold(text);
61
+ default:
62
+ return chalk_1.default.bgGreenBright.black.bold(text);
63
+ }
64
+ ;
65
+ }
66
+ };
67
+ exports.processBadge = {
68
+ tag: "process",
69
+ style: (text, options) => {
70
+ return chalk_1.default.blackBright(process.pid);
71
+ }
72
+ };
73
+ exports.paddingBadge = {
74
+ tag: "",
75
+ style: (text, options) => {
76
+ const level = options?.level;
77
+ text = ` ${text} `;
78
+ switch (level) {
79
+ case "error":
80
+ return chalk_1.default.bgRedBright.black.bold(text);
81
+ case "verbose":
82
+ case "debug":
83
+ return chalk_1.default.bgGray.black.bold(text);
84
+ case "warn":
85
+ return chalk_1.default.bgYellow.black.bold(text);
86
+ default:
87
+ return chalk_1.default.bgGreenBright.black.bold(text);
88
+ }
89
+ ;
90
+ }
91
+ };
92
+ exports.timestampBadge = {
93
+ key: "timestamp",
94
+ style: (text, options) => {
95
+ return text;
96
+ }
97
+ };
98
+ exports.messageBadge = {
99
+ key: "message",
100
+ style: (text, options) => {
101
+ if (typeof text === "object") {
102
+ text = (0, exports.pretty)(text);
103
+ }
104
+ const level = options?.level;
105
+ switch (level) {
106
+ case "error":
107
+ return chalk_1.default.redBright(text);
108
+ case "verbose":
109
+ case "debug":
110
+ return chalk_1.default.gray.bold(text);
111
+ case "warn":
112
+ return chalk_1.default.yellow(text);
113
+ default:
114
+ return chalk_1.default.greenBright(text);
115
+ }
116
+ ;
117
+ }
118
+ };
119
+ exports.titleBadge = {
120
+ key: "title",
121
+ style: (text, options) => {
122
+ const level = options?.level;
123
+ text = ` ${text || options?.label || "-"} `;
124
+ switch (level) {
125
+ case "error":
126
+ return chalk_1.default.bgRedBright.black.bold(text);
127
+ case "verbose":
128
+ case "debug":
129
+ return chalk_1.default.bgMagentaBright.black.bold(text);
130
+ case "warn":
131
+ return chalk_1.default.bgYellow.black.bold(text);
132
+ default:
133
+ return chalk_1.default.bgGreenBright.black.bold(text);
134
+ }
135
+ ;
136
+ }
137
+ };
138
+ exports.appBadgeTemplate = {
139
+ badges: [exports.appBadge, exports.processBadge, exports.timestampBadge, exports.titleBadge, exports.messageBadge],
140
+ gap: {
141
+ tag: " ",
142
+ style: (text, options) => {
143
+ return text;
144
+ }
145
+ }
146
+ };
147
+ exports.textTemplate = {
148
+ badges: [exports.messageBadge],
149
+ gap: {
150
+ tag: " ",
151
+ style: (text, options) => {
152
+ return text;
153
+ }
154
+ }
155
+ };
@@ -0,0 +1,2 @@
1
+ export declare let JSON_TAB_SIZE: number;
2
+ export declare const pretty: any;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.pretty = exports.JSON_TAB_SIZE = void 0;
4
+ exports.JSON_TAB_SIZE = 4;
5
+ const pretty = (message) => {
6
+ return JSON.stringify(message, null, exports.JSON_TAB_SIZE);
7
+ };
8
+ exports.pretty = pretty;
@@ -0,0 +1,3 @@
1
+ export declare function echo<T>(value: T): T;
2
+ export declare const createTemplateString: any;
3
+ export declare const createBadgeString: any;
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createBadgeString = exports.createTemplateString = void 0;
4
+ exports.echo = echo;
5
+ function echo(value) {
6
+ return value;
7
+ }
8
+ ;
9
+ const createTemplateString = (template, artifacts) => {
10
+ const badges = template?.["badges"];
11
+ const length = Array.isArray(badges) ? badges.length : 0;
12
+ let index = 0;
13
+ let builder = "";
14
+ for (; index < length; index++) {
15
+ const badge = (0, exports.createBadgeString)(badges[index], artifacts);
16
+ if (typeof badge === "string") {
17
+ builder += badge + " ";
18
+ }
19
+ }
20
+ return builder;
21
+ };
22
+ exports.createTemplateString = createTemplateString;
23
+ const createBadgeString = (badge, artifacts) => {
24
+ const styling = typeof badge["style"] === "function" ? badge["style"] : echo;
25
+ const tag = artifacts?.[badge["key"]] || badge["tag"] || "";
26
+ return styling(tag, artifacts);
27
+ };
28
+ exports.createBadgeString = createBadgeString;
@@ -0,0 +1,7 @@
1
+ import Transport from "winston-transport";
2
+ import { SonicBoom } from "sonic-boom";
3
+ export declare const sonic: SonicBoom;
4
+ export declare class SonicConsoleTransport extends Transport {
5
+ constructor(options?: Transport.TransportStreamOptions);
6
+ log(information: any, callback?: Function): void;
7
+ }
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.SonicConsoleTransport = exports.sonic = void 0;
7
+ const logger_1 = require("../tools/logger");
8
+ const winston_transport_1 = __importDefault(require("winston-transport"));
9
+ const sonic_boom_1 = require("sonic-boom");
10
+ const node_os_1 = require("node:os");
11
+ exports.sonic = new sonic_boom_1.SonicBoom({
12
+ fd: process.stdout.fd,
13
+ sync: true
14
+ });
15
+ class SonicConsoleTransport extends winston_transport_1.default {
16
+ constructor(options) {
17
+ super(options);
18
+ }
19
+ log(information, callback) {
20
+ const template = information?.["template"];
21
+ exports.sonic.write((template ? (0, logger_1.createTemplateString)(template, information) : information) + node_os_1.EOL);
22
+ if (typeof callback === "function") {
23
+ callback();
24
+ }
25
+ }
26
+ }
27
+ exports.SonicConsoleTransport = SonicConsoleTransport;
@@ -0,0 +1,6 @@
1
+ import { LogOptions } from "./LogOptions";
2
+ import { Logger } from "winston";
3
+ export type LogConstructorOptions = {
4
+ title?: string;
5
+ logger?: Logger;
6
+ } & LogOptions;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,22 @@
1
+ export type Style = (text: string, options?: LogOptions) => string;
2
+ export type LogLevel = "info" | "warn" | "error" | "debug" | "verbose";
3
+ export type LogOptions = {
4
+ level: LogLevel;
5
+ label?: string;
6
+ template?: Template;
7
+ };
8
+ export type LogOutput = {
9
+ marker?: string;
10
+ load?: boolean;
11
+ };
12
+ export type Badge = {
13
+ style: Style;
14
+ tag?: string;
15
+ key?: string;
16
+ };
17
+ export type Template = {
18
+ accent?: string;
19
+ artifacts?: any;
20
+ badges: Array<Badge>;
21
+ gap: Badge;
22
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json ADDED
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "@geeko/log",
3
+ "version": "1.0.0",
4
+ "description": "",
5
+ "main": "./dist/main.js",
6
+ "directories": {
7
+ "test": "test"
8
+ },
9
+ "scripts": {
10
+ "build": "rm -rf ./dist/ && tsc -p ./tsconfig.json",
11
+ "pub": "npm run build && npm publish --access=public",
12
+ "test": "echo \"Error: no test specified\" && exit 1"
13
+ },
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://github.com/Metwas/geeko-log.git"
17
+ },
18
+ "author": "Metwas",
19
+ "license": "MIT",
20
+ "bugs": {
21
+ "url": "https://github.com/Metwas/geeko-log/issues"
22
+ },
23
+ "homepage": "https://github.com/Metwas/geeko-log#readme",
24
+ "dependencies": {
25
+ "chalk": "4.1.2",
26
+ "chalk-animation": "^2.0.3",
27
+ "nanospinner": "^1.2.2",
28
+ "sonic-boom": "^4.2.0",
29
+ "winston": "^3.17.0"
30
+ },
31
+ "devDependencies": {
32
+ "@types/node": "^20.19.9",
33
+ "typescript": "^5.8.3"
34
+ }
35
+ }