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 +19 -0
- package/build/color.d.ts +7 -0
- package/build/color.js +19 -0
- package/build/index.d.ts +1 -0
- package/build/index.js +5 -0
- package/package.json +29 -0
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 😊
|
package/build/color.d.ts
ADDED
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();
|
package/build/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { color } from "./color";
|
package/build/index.js
ADDED
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
|
+
}
|