# ht1204

> A Personal NPM Card

Latest version **1.0.7** (published 2022-08-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install ht1204
pnpm add ht1204
yarn add ht1204
bun add ht1204
```

Provides the command `ht1204`.

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.7 |
| Published | 2022-08-26 |
| First published | 2022-08-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 6.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Hector Triana |
| Maintainers | ht1204 |
| Keywords | npm, npm, card, npx, npx, card, business, card |

## Links

- npm: https://www.npmjs.com/package/ht1204
- Repository: https://github.com/ht1204/npm-profile-card
- Homepage: https://github.com/ht1204/npm-profile-card#readme
- Issues: https://github.com/ht1204/npm-profile-card/issues
- npm.io page: https://npm.io/package/ht1204

## Dependencies (2)

- [boxen](https://npm.io/package/boxen.md) ^7.0.0
- [chalk](https://npm.io/package/chalk.md) ^5.0.1

## Recent versions

- 1.0.7 (latest) — 2022-08-26
- 1.0.2 — 2022-08-26

## README

# My npm card

Run
Via npx

npx ht1204

Steps

1. You can fork in the repo of [ht1204](https://github.com/ht1204/npm-profile-card) or just go creating your files.

```bash
    # Create new folder
    $ mkdir npm-profile-card && cd $_

    # Init the npm package
    $ npm init
```


2. Install the dependencies
```bash
    #   dependencies
    $ npm install
```


3. Create the personal card
```bash
    # Create bin folder
    $ mkdir bin && cd $_

    # Create the card.js file
    $ touch bin/card.js
```

4. Add personal information to your card
```javascript
#!/usr/bin/env node
// 👆 Used to tell Node.js that this is a CLI tool

// Pull in our modules
const chalk = require('chalk')
const boxen = require('boxen')

// Define options for Boxen
const options = {
  padding: 1,
  margin: 1,
  borderStyle: 'round'
}

// Text + chalk definitions
const data = {
  name: chalk.white('YOUR NAME / '),
  handle: chalk.cyan('HANDLENAME'),
  work: chalk.white('WHERE DO YOU WORK'),
  twitter: chalk.cyan('TWITTER ACCOUNT'),
  github: chalk.cyan('GITHUB ACCOUNT'),
  linkedin: chalk.cyan('LINKEDIN ACCOUNT'),
  web: chalk.cyan('YOUR WEBSITE'),
  npx: chalk.white('npx YOUR_ALIAS'),
  labelWork: chalk.white.bold('      Work:'),
  labelTwitter: chalk.white.bold('   Twitter:'),
  labelGitHub: chalk.white.bold('    GitHub:'),
  labelLinkedIn: chalk.white.bold('  LinkedIn:'),
  labelWeb: chalk.white.bold('       Web:'),
  labelCard: chalk.white.bold('      Card:')
}

// Actual strings we are going to output
const newline = '\n'
const heading = `${data.name} ${data.handle}`
const working = `${data.labelWork}  ${data.work}`
const twittering = `${data.labelTwitter}  ${data.twitter}`
const githubing = `${data.labelGitHub}  ${data.github}`
const linkedining = `${data.labelLinkedIn}  ${data.linkedin}`
const webing = `${data.labelWeb}  ${data.web}`
const carding = `${data.labelCard}  ${data.npx}`

// Put all our output together into a single variable so we can use boxen effectively
const output = heading + newline + newline + working + newline + twittering + newline + githubing + newline + linkedining + newline + webing + newline + newline + carding

console.log(chalk.green(boxen(output, options)))

```

5. Create an account in [`npm.org`](npm.org), if you already have it, skip this step

6. Know the version of your package dependency

```bash
    $ npm version major
```

7. Add your npm user - login

```bash
    $ npm adduser
```

8. Publish your package

```bash
    $ npm publish
```

9. Run your npm-package card

```bash
    $ npx ht1204
```

---
_Source: https://npm.io/package/ht1204 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
