# davidgs

> A personal NPX card for David G. Simmons (davidgs)

Latest version **1.4.0** (published 2026-02-04) · MIT license · 0 weekly downloads

## Install

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

Provides the command `davidgs`.

## Health

**Score 50/100 (C)** — status: stable.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 1.4.0 |
| Published | 2026-02-04 |
| First published | 2019-01-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 13.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | David G. Simmons |
| Maintainers | davidgs |
| Keywords | David G. Simmons, card, npm, npm card, npx, npx card, business card |

## Links

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

## Dependencies (2)

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

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.4.0 (latest) — 2026-02-04
- 1.3.1 — 2024-05-02
- 1.3.0 — 2024-05-02
- 1.2.1 — 2023-12-05
- 1.2.0 — 2023-12-05
- 1.1.3 — 2023-12-05
- 1.1.1 — 2023-10-20
- 1.1.0 — 2023-10-20
- 1.0.6 — 2020-08-07
- 1.0.5 — 2020-08-07
- 1.0.4 — 2019-01-02
- 1.0.3 — 2019-01-02
- 1.0.2 — 2019-01-02
- 1.0.1 — 2019-01-02

## README

# npx-card

```sh
$ npx davidgs
```
> Generate your own `npx <your_username>` card easily with provided configurations. 😃
> [Fork](https://github.com/davidgs/davidgs-npx-card/fork) & get started and leave a star ⭐ to this repo

**NOTE**: Do not install this package as a global package i.e. **`npm -g davidgs`**. Always use **`npx davidgs`** to view the card as this package won't be used as any other command

---

## available scripts

- **build**: to build the output (entry point for the script: `src/index.js`)
- **view**: to view the output (entry point for the script: `src/card.js`)
- **prepublish**: runs before the `npm publish` command to generate the build

---

### files:

| file name              |      path   |  usage                                                      |
|------------------------|-------------|-------------------------------------------------------------|
| index.js               | src/        | entry point file / to generate the output                   |
| card.js                | src/        | to read the output                                          |
| boxen.config.js        | src/config/ | boxen color, bgColor, style, etc configuration              |
| chalk.config.js        | src/config/ | chalk configuration for various methods                     |
| io.config.js           | src/config/ | io provide the path of output file                          |
| boxUI.js               | src/user/   | boxen js user defined UI options                            |
| data.js                | src/user/   | user data with configuration                                |
| createConsoleString.js | src/utils/  | creates the console string which need to be saved as output |
| io.js                  | src/utils/  | to read and write the file to the output location           |
| output                 | bin/        | output file which needs to be displayed                     |

---

## config files:

- `boxen.config.js`: provides the various colors, styles, text aligns and box styles parameters.
  - ___exports___: This file exports four objects:
    - `BOXEN_COLOR`: BLACK, RED, GREEN, etc...
    - `BORDER_STYLE`: TOPLEFT, TOP, TOPRIGHT, RIGHT, BOTTOMRIGHT, BOTTOM, BOTTOMLEFT, LEFT
    - `TEXTALIGN`: LEFT, RIGHT, CENTER
    - `BOX_STYLE`: SINGLE, DOUBLE, ROUND, BOLD, SINGLEDOUBLE, DOUBLESINGLE, CLASSIC, ARROW
  - ___usage___: for complete usage and for more example please visit [BoxenJS](https://www.npmjs.com/package/boxen)
  ```js
  import {
    BOXEN_COLOR,
    BORDER_STYLE,
    TEXTALIGN,
    BOX_STYLE
  } from './config/boxen.config.js' // use relative path here to your file

  // use these while creating boxUI.js or while using boxen() method

  BOXEN_COLOR.RED     // to provide color to the box
  BOXEN_STYLE.ROUND   // to provide border style to the box
  TEXTALIGN.RIGHT     // to provide the text align in the box
  BORDER_STYLE.TOP    // to provide custom deign to the box
  ```
- `chalk.config.js`: It provides colors, background colors, Modifiers and color methods for custom color.
  - ___exports___: This file exports four objects
    - `COLORS`: colors methods
    - `BGCOLORS`: background color methods
    - `MODIFIERS`: style modifiers for the text
    - `COLORMETHODS`: methods to provide the custom colors / user defined colors
  - ___usages___: for complete usage and for more example please visit [ChalkJS](https://www.npmjs.com/package/chalk)
  ```js
  import {
    COLORS,
    BGCOLORS,
    MODIFIERS,
    COLORMETHODS
  } from './config/chalk.config.js'; // use relative path here to your file

  // use these methods in data.js file or with chalk library
  COLORS.blue         // provide color to the text
  BGCOLORS.white      // provide background color to the text
  MODIFIERS.bold      // provide styles to the text
  COLORMETHODS.rgb    // use method to provide custom colors for both text color and text background color
  ```
- `io.config.js`: provide the `__dirname` functionality to the ES modules to generate output correctly
---

## How to publish your own card:

- fork/clone this repo
- change the data in `src/user/data.js` file
- login to your npm account using `npm login`
- publish this to npm using `npm publish`
- udpate the package version using below commands
  - ___patch___: `npm version patch` to update last version number v1.0.**1**
  - ___minor___: `npm version minor` to update middle version number v1.**1**.0
  - ___major___: `npm version major` to update the first version number v**2**.0.0

---

## License
[MIT](http://opensource.org/licenses/MIT)
Copyright (c) 2023 David G. Simmons (davidgs)

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