devloperds 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.
Files changed (3) hide show
  1. package/README.md +84 -0
  2. package/bin/index.js +84 -0
  3. package/package.json +34 -0
package/README.md ADDED
@@ -0,0 +1,84 @@
1
+ # devloperds 👋
2
+
3
+ > My personal NPX card — learn more about me with a single command!
4
+
5
+ ## Usage
6
+
7
+ ```bash
8
+ npx devloperds
9
+ ```
10
+
11
+ ## Preview
12
+
13
+ ```
14
+ ╭───────────────────────────────────────────────────────╮
15
+ │ │
16
+ │ devloperds │
17
+ │ │
18
+ │ Work: Full Stack Developer │
19
+ │ Twitter: https://twitter.com/devloperds │
20
+ │ GitHub: https://github.com/devloperds │
21
+ │ LinkedIn: https://linkedin.com/in/devloperds │
22
+ │ Web: https://devloperds.dev │
23
+ │ │
24
+ │ Card: npx devloperds │
25
+ │ │
26
+ ╰───────────────────────────────────────────────────────╯
27
+ ```
28
+
29
+ ## Customize
30
+
31
+ Edit `bin/index.js` to update your personal information:
32
+
33
+ - **name**: Your display name
34
+ - **work**: Your current role/title
35
+ - **twitter**: Your Twitter handle
36
+ - **github**: Your GitHub username
37
+ - **linkedin**: Your LinkedIn profile
38
+ - **web**: Your personal website
39
+
40
+ ## Publishing to npm
41
+
42
+ 1. Create an npm account at [npmjs.com](https://www.npmjs.com/)
43
+
44
+ 2. Login to npm:
45
+ ```bash
46
+ npm login
47
+ ```
48
+
49
+ 3. Publish your package:
50
+ ```bash
51
+ npm publish
52
+ ```
53
+
54
+ 4. Now anyone can run:
55
+ ```bash
56
+ npx devloperds
57
+ ```
58
+
59
+ ## Local Development
60
+
61
+ ```bash
62
+ # Install dependencies
63
+ npm install
64
+
65
+ # Run locally
66
+ npm start
67
+
68
+ # Or link globally for testing
69
+ npm link
70
+ devloperds
71
+ ```
72
+
73
+ ## Tech Stack
74
+
75
+ - [chalk](https://github.com/chalk/chalk) - Terminal string styling
76
+ - [boxen](https://github.com/sindresorhus/boxen) - Create boxes in the terminal
77
+
78
+ ## License
79
+
80
+ MIT © devloperds
81
+
82
+ ---
83
+
84
+ ⭐ Inspired by [npx bitandbang](https://github.com/bnb/bitandbang)
package/bin/index.js ADDED
@@ -0,0 +1,84 @@
1
+ #!/usr/bin/env node
2
+
3
+ const boxen = require("boxen");
4
+ const chalk = require("chalk");
5
+
6
+ // ============================================
7
+ // 🎨 CUSTOMIZE YOUR CARD HERE
8
+ // ============================================
9
+
10
+ const data = {
11
+ name: chalk.bold.cyan(" devloperds"),
12
+ handle: chalk.white("@devloperds"),
13
+ work: chalk.white("Full Stack Developer"),
14
+ twitter: chalk.gray("https://twitter.com/") + chalk.cyan("devloperds"),
15
+ github: chalk.gray("https://github.com/") + chalk.green("devloperds"),
16
+ linkedin: chalk.gray("https://linkedin.com/in/") + chalk.blue("devloperds"),
17
+ web: chalk.cyan("https://devloperds.dev"),
18
+ npx: chalk.red("npx") + " " + chalk.white("devloperds"),
19
+
20
+ labelWork: chalk.white.bold(" Work:"),
21
+ labelTwitter: chalk.white.bold(" Twitter:"),
22
+ labelGitHub: chalk.white.bold(" GitHub:"),
23
+ labelLinkedIn: chalk.white.bold(" LinkedIn:"),
24
+ labelWeb: chalk.white.bold(" Web:"),
25
+ labelCard: chalk.white.bold(" Card:"),
26
+ };
27
+
28
+ // Create the card content
29
+ const newline = "\n";
30
+ const heading = `${data.name}`;
31
+ const working = `${data.labelWork} ${data.work}`;
32
+ const twittering = `${data.labelTwitter} ${data.twitter}`;
33
+ const githubing = `${data.labelGitHub} ${data.github}`;
34
+ const linkedining = `${data.labelLinkedIn} ${data.linkedin}`;
35
+ const webing = `${data.labelWeb} ${data.web}`;
36
+ const carding = `${data.labelCard} ${data.npx}`;
37
+
38
+ // Combine all parts
39
+ const output =
40
+ heading +
41
+ newline +
42
+ newline +
43
+ working +
44
+ newline +
45
+ twittering +
46
+ newline +
47
+ githubing +
48
+ newline +
49
+ linkedining +
50
+ newline +
51
+ webing +
52
+ newline +
53
+ newline +
54
+ carding;
55
+
56
+ // Box options
57
+ const boxOptions = {
58
+ padding: 1,
59
+ margin: 1,
60
+ borderStyle: "round",
61
+ borderColor: "cyan",
62
+ float: "center",
63
+ };
64
+
65
+ // Print the card
66
+ console.log(chalk.cyan("\n Hello! Welcome to my card.\n"));
67
+ console.log(boxen(output, boxOptions));
68
+ console.log(
69
+ chalk.italic(
70
+ chalk.gray("\n Tip: ") +
71
+ chalk.white("Try running ") +
72
+ chalk.cyan("npx devloperds") +
73
+ chalk.white(" anywhere!\n")
74
+ )
75
+ );
76
+ console.log(
77
+ chalk.gray(" ─────────────────────────────────────────────────────\n")
78
+ );
79
+ console.log(
80
+ chalk.white(" ") +
81
+ chalk.green("✨") +
82
+ chalk.white(" Thanks for stopping by! Have a great day! ") +
83
+ chalk.green("✨\n")
84
+ );
package/package.json ADDED
@@ -0,0 +1,34 @@
1
+ {
2
+ "name": "devloperds",
3
+ "version": "1.0.0",
4
+ "description": "My personal npx card - Run 'npx devloperds' to know more about me!",
5
+ "main": "bin/index.js",
6
+ "bin": {
7
+ "devloperds": "./bin/index.js"
8
+ },
9
+ "scripts": {
10
+ "start": "node bin/index.js",
11
+ "test": "node bin/index.js"
12
+ },
13
+ "keywords": [
14
+ "npx",
15
+ "card",
16
+ "cli",
17
+ "developer",
18
+ "devloperds",
19
+ "personal-card"
20
+ ],
21
+ "author": "devloperds",
22
+ "license": "MIT",
23
+ "dependencies": {
24
+ "boxen": "^5.1.2",
25
+ "chalk": "^4.1.2"
26
+ },
27
+ "repository": {
28
+ "type": "git",
29
+ "url": "https://github.com/devloperds/devloperds"
30
+ },
31
+ "engines": {
32
+ "node": ">=12"
33
+ }
34
+ }