assaf-color-printer 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/README.md ADDED
@@ -0,0 +1,19 @@
1
+ # Console Printing in Colors
2
+
3
+ ## Pleasure and fun for the entire family
4
+
5
+ ### Installation:
6
+ ```bash
7
+ npm install assaf-color-printer
8
+ ```
9
+
10
+ ### Example:
11
+ ```ts
12
+ import { color } from "assaf-color-printer";
13
+
14
+ color.red("This is a red text...");
15
+ color.green("This is a green text...");
16
+ color.blue("This is a blue text...");
17
+ ```
18
+
19
+ Happy coding 😊
@@ -0,0 +1,7 @@
1
+ declare class Color {
2
+ red(text: string): void;
3
+ green(text: string): void;
4
+ blue(text: string): void;
5
+ }
6
+ export declare const color: Color;
7
+ export {};
package/build/color.js ADDED
@@ -0,0 +1,19 @@
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.color = void 0;
7
+ const colors_1 = __importDefault(require("colors"));
8
+ class Color {
9
+ red(text) {
10
+ console.log(colors_1.default.red(text));
11
+ }
12
+ green(text) {
13
+ console.log(colors_1.default.green(text));
14
+ }
15
+ blue(text) {
16
+ console.log(colors_1.default.blue(text));
17
+ }
18
+ }
19
+ exports.color = new Color();
@@ -0,0 +1 @@
1
+ export { color } from "./color";
package/build/index.js ADDED
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.color = void 0;
4
+ var color_1 = require("./color");
5
+ Object.defineProperty(exports, "color", { enumerable: true, get: function () { return color_1.color; } });
package/package.json ADDED
@@ -0,0 +1,29 @@
1
+ {
2
+ "name": "assaf-color-printer",
3
+ "version": "1.0.0",
4
+ "author": "Assaf Finkelshtein",
5
+ "description": "Console printer in colors.",
6
+ "keywords": [
7
+ "console",
8
+ "color",
9
+ "colors",
10
+ "print",
11
+ "printing",
12
+ "colour",
13
+ "colours"
14
+ ],
15
+ "main": "build/index.js",
16
+ "types": "build/index.d.ts",
17
+ "files": [
18
+ "build"
19
+ ],
20
+ "scripts": {
21
+ "build": "tsc"
22
+ },
23
+ "devDependencies": {
24
+ "typescript": "^7.0.2"
25
+ },
26
+ "dependencies": {
27
+ "colors": "^1.4.0"
28
+ }
29
+ }