smiley-cli-by-shondrapkin 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 @@
1
+ # smiley CLI Printer
package/build/app.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ #!/user/bin/env node
2
+ export {};
package/build/app.js ADDED
@@ -0,0 +1,18 @@
1
+ #!/user/bin/env node
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ const smiley_1 = require("./smiley");
5
+ const smileyToShow = process.argv[2];
6
+ if (smileyToShow === "happy") {
7
+ smiley_1.smiley.happy();
8
+ }
9
+ else if (smileyToShow === "sad") {
10
+ smiley_1.smiley.sad();
11
+ }
12
+ else if (smileyToShow === "bored") {
13
+ smiley_1.smiley.bored();
14
+ }
15
+ else {
16
+ console.log("Illegal usage.... correct usage:");
17
+ console.log("smiley happy/sad/bored");
18
+ }
@@ -0,0 +1,7 @@
1
+ declare class Smiley {
2
+ happy(): void;
3
+ sad(): void;
4
+ bored(): void;
5
+ }
6
+ export declare const smiley: Smiley;
7
+ export {};
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.smiley = void 0;
4
+ class Smiley {
5
+ happy() {
6
+ console.log("😊");
7
+ }
8
+ sad() {
9
+ console.log("😢");
10
+ }
11
+ bored() {
12
+ console.log("😐");
13
+ }
14
+ }
15
+ exports.smiley = new Smiley();
package/package.json ADDED
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "smiley-cli-by-shondrapkin",
3
+ "author": "Shon",
4
+ "version": "1.0.0",
5
+ "description": "Generate smiley.",
6
+ "keywords": [
7
+ "smiley"
8
+ ],
9
+ "files": [
10
+ "build"
11
+ ],
12
+ "scripts": {
13
+ "build": "tsc"
14
+ },
15
+ "devDependencies": {
16
+ "@types/node": "^25.0.3",
17
+ "typescript": "^5.9.3"
18
+ },
19
+ "bin": {
20
+ "smiley": "build/app.js"
21
+ }
22
+ }