open-index/open-npm huggingface dataset:
npm package: @ksyun/mt
Description: > monitor frontend & error report > support plugin
Author: wangjianliang
Latest version: 0.0.2

# MT
> monitor frontend & error report
> support plugin

# install
```bash
# ing...
```

### usage
```ts
import Mt from 'mt'
import MtPanel from 'mt/dist/mt-panel'
import MtFps from 'mt/dist/mt-fps'
import MtError from 'mt/dist/mt-error'

let monitor = new Mt({
  //  relate product
  product: 'test',
  //  relate user
  uid: 'test',
  // report url , will stop report if empty | undefined
  reportUrl: `http://${location.hostname}:8000/log`
})

let fps = new MtFps()
let err = new MtError(100000, 100, 10)
let panel = new MtPanel(fps)

monitor
  .plugin(fps)
  .plugin(err)
  .plugin(panel)

monitor.run()
```

### main 
> Collect Performance Data

  - data struct **IPerformance**
  
  ```ts
  export interface INetworkPerformance {
    // dns 耗时
    dnstime: number
    // tcp链路消耗时间
    tcptracetime: number
    // request 请求时间从服务器到浏览器时间
    requesttime: number
    // response request 结果内容加载时间
    responsetime: number
    // 总体网络耗时
    allnetworktime: number
    // 跳转耗时
    redirect: number
  }
  export interface IPerformance extends INetworkPerformance {
    // 解析dom树消耗时间
    domcompiletime: number
    // 完全白屏时间
    whitetime: number
    // dom树ready的时间
    domreadytime: number
    // onload 的时间
    onloadtime: number
    // cache 耗时
    appcachetime: number
    // 重定向次数
    redirectCount?: number
    // 静态资源性能
    entries: IPerformanceEntry[]
    // 原始新能指标对象
    timing: PerformanceTiming
  }

  export interface IPerformanceEntry extends INetworkPerformance {
    size: number
    name: string
    // 原始性能指标
    timing: PerformanceEntry
  }
  ```


### plugin fps
> timing collect fps data & report server **reportUrl** must be set

### plugin error
> hijack error log & report server **reportUrl** must be set

### plugin panel
> show frontend monitor data dialog panel
> 
> **need import 'mt/dist/mt-panel.css'**

![](./static/1.png)

### TODO

- [ ] ~~webpack plugin support auto mounted frontend entry~~
- [ ] ~~report data compress~~
- [x] vue error report
- [x] console.error report
- [x] request time
- [x] reset report data interface
- [x] ~~server platform support analyze report data & alarm~~ , usage open source analyze server
- [ ] unit test
npm package: @kszongic/align-cli
Description: Align text columns from stdin — left, right, or center justify tabular data
Author: kszongic
Latest version: 1.0.0

# @kszongic/align-cli

[![npm version](https://img.shields.io/npm/v/@kszongic/align-cli)](https://www.npmjs.com/package/@kszongic/align-cli)
[![license](https://img.shields.io/npm/l/@kszongic/align-cli)](./LICENSE)

Align text columns from stdin — left, right, or center justify tabular data. Zero dependencies.

## Install

```bash
npm i -g @kszongic/align-cli
```

## Usage

```bash
# Basic — align whitespace-separated columns
echo -e "name age\nAlice 30\nBob 7" | align-cli
# name   age
# Alice  30
# Bob    7

# Right-align
echo -e "item price\nApple 1.50\nBanana 0.75" | align-cli -a right
#   item  price
#  Apple   1.50
# Banana   0.75

# Center-align with custom separator
echo "a,bb,ccc" | align-cli -s "," -a center
#  a   bb  ccc

# Custom output separator
echo -e "x 1\nyy 22" | align-cli -o " | "
# x  | 1
# yy | 22
```

## Options

| Flag | Description | Default |
|------|-------------|---------|
| `-s, --separator <sep>` | Input column separator | whitespace |
| `-o, --output-sep <sep>` | Output separator | `"  "` (two spaces) |
| `-a, --align <mode>` | `left`, `right`, or `center` | `left` |
| `-h, --help` | Show help | |
| `-v, --version` | Show version | |

## License

MIT © 2026 kszongic
npm package: @kszongic/base58-cli
Description: Encode and decode Base58 (Bitcoin alphabet) from the command line
Author: kszongic
Latest version: 1.0.0

# @kszongic/base58-cli

[![npm version](https://img.shields.io/npm/v/@kszongic/base58-cli)](https://www.npmjs.com/package/@kszongic/base58-cli)
[![license](https://img.shields.io/npm/l/@kszongic/base58-cli)](./LICENSE)

Encode and decode **Base58** (Bitcoin alphabet) from the command line. Zero dependencies.

## Install

```bash
npm install -g @kszongic/base58-cli
```

## Usage

```bash
# Encode text to Base58
base58 encode "hello"
# Cn8eVZg

# Decode Base58 back to text
base58 decode "Cn8eVZg"
# hello

# Pipe from stdin
echo -n "hello world" | base58 encode
echo "StV1DL6CwTryKyV" | base58 decode
```

## Why Base58?

Base58 is used in Bitcoin addresses, IPFS CIDs, and other systems where you want a compact, human-friendly encoding that avoids ambiguous characters (0, O, I, l).

## License

MIT © 2026 kszongic
npm package: @kszongic/bigtext-cli
Description: Print big ASCII block-letter text in the terminal
Author: kszongic
Latest version: 1.0.0

# @kszongic/bigtext-cli

[![npm version](https://img.shields.io/npm/v/@kszongic/bigtext-cli)](https://www.npmjs.com/package/@kszongic/bigtext-cli)
[![license](https://img.shields.io/npm/l/@kszongic/bigtext-cli)](./LICENSE)

Print big ASCII block-letter text in your terminal. Zero dependencies.

## Install

```bash
npm install -g @kszongic/bigtext-cli
```

## Usage

```bash
# Basic usage
bigtext hello

#   #  #####  #      #      #####
#   #  #      #      #      #   #
#   #  #      #      #      #   #
#####  ####   #      #      #   #
#   #  #      #      #      #   #
#   #  #      #      #      #   #
#   #  #####  #####  #####  #####

# Custom character
bigtext -c '*' HI

*   *  *****
*   *    *
*   *    *
*****    *
*   *    *
*   *    *
*   *  *****

# Pipe input
echo "WOW" | bigtext
```

## Options

| Option | Description |
|--------|-------------|
| `-c, --char <ch>` | Character to use for blocks (default: `#`) |
| `-h, --help` | Show help |
| `-v, --version` | Show version |

## Supported Characters

A-Z, 0-9, space, `!`, `?`, `.`, `-`, `#`, `@`

## License

MIT © 2026 kszongic
npm package: @kszongic/bitmask-cli
Description: Zero-dependency CLI for bitwise operations: AND, OR, XOR, NOT, shifts, and bit manipulation
Author: kszongic
Latest version: 1.0.0

# @kszongic/bitmask-cli

[![npm version](https://img.shields.io/npm/v/@kszongic/bitmask-cli)](https://www.npmjs.com/package/@kszongic/bitmask-cli)
[![license](https://img.shields.io/npm/l/@kszongic/bitmask-cli)](./LICENSE)

Zero-dependency CLI for bitwise operations. AND, OR, XOR, NOT, shifts, and bit manipulation — right from your terminal.

## Install

```bash
npm i -g @kszongic/bitmask-cli
```

## Usage

```bash
bitmask and 0xFF 0x0F        # 15 (0b00001111)
bitmask or 0b1010 0b0101     # 15 (0b00001111)
bitmask xor 12 7             # 11 (0b00001011)
bitmask not 0                # -1 (0b11111111111111111111111111111111)
bitmask lshift 1 8           # 256 (0b100000000)
bitmask rshift 256 4         # 16 (0b10000)
bitmask set 0 3              # 8 (0b00001000)
bitmask clear 0xFF 4         # 239 (0b11101111)
bitmask toggle 0b1010 1      # 8 (0b00001000)
bitmask check 0xFF 7         # 1 (bit 7 is set)
bitmask bits 255             # 11111111
bitmask popcount 0xFF        # 8
bitmask mask 8               # 255 (0b11111111)
```

Numbers can be decimal, hex (`0x`), octal (`0o`), or binary (`0b`).

## Operations

| Command | Description |
|---------|-------------|
| `and a b` | Bitwise AND |
| `or a b` | Bitwise OR |
| `xor a b` | Bitwise XOR |
| `not a` | Bitwise NOT (32-bit) |
| `lshift a n` | Left shift |
| `rshift a n` | Unsigned right shift |
| `set a bit` | Set bit at position |
| `clear a bit` | Clear bit at position |
| `toggle a bit` | Toggle bit |
| `check a bit` | Check if bit is set |
| `bits a` | Binary representation |
| `popcount a` | Count set bits |
| `mask n` | Generate n-bit mask |

## License

MIT © kszongic
npm package: @kszongic/byte-convert-cli
Description: Convert between byte units from the command line — B, KB, MB, GB, TB, PB
Author: kszongic
Latest version: 1.0.0

# byte-convert-cli

[![npm version](https://img.shields.io/npm/v/@kszongic/byte-convert-cli)](https://www.npmjs.com/package/@kszongic/byte-convert-cli)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)

Convert between byte units from the command line. Zero dependencies.

## Install

```bash
npm install -g @kszongic/byte-convert-cli
```

## Usage

```bash
# Auto-format
byte-convert 1500000B        # → 1.50 MB

# Specific target unit
byte-convert 2.5GB MB        # → 2500.00 MB

# Binary mode (1024-based)
byte-convert 1024KB MB -b    # → 1.00 MB
byte-convert 1GB MB --binary # → 1024.00 MB
```

### Units

`B` · `KB` · `MB` · `GB` · `TB` · `PB`

### Flags

| Flag | Description |
|------|-------------|
| `--binary`, `-b` | Use 1024-based conversion (default: 1000-based) |

## License

MIT © 2026 kszongic
npm package: @kszongic/byte-count-cli
Description: Count bytes in files or stdin — fast, zero-dependency CLI
Author: kszongic
Latest version: 1.0.0

# @kszongic/byte-count-cli

[![npm version](https://img.shields.io/npm/v/@kszongic/byte-count-cli)](https://www.npmjs.com/package/@kszongic/byte-count-cli)
[![license](https://img.shields.io/npm/l/@kszongic/byte-count-cli)](./LICENSE)

Count bytes in files or stdin — fast, zero-dependency CLI.

## Install

```bash
npm install -g @kszongic/byte-count-cli
```

## Usage

```bash
# Single file
byte-count package.json
# 468	468 B	package.json

# Multiple files
byte-count *.js
# 1726	1.7 KB	index.js
# 1726	1.7 KB	total

# From stdin
echo "hello world" | byte-count
# 12	(12 B)

# Total only
byte-count -t src/*.js
# 8450	8.3 KB	total
```

## Options

| Flag | Description |
|------|-------------|
| `-h, --help` | Show help |
| `-v, --version` | Show version |
| `-t, --total` | Show only the total for multiple files |

## Output

Tab-separated: `<bytes>\t<human>\t<filename>`

Human-readable sizes auto-scale (B → KB → MB → GB).

## License

MIT © 2026 kszongic
npm package: @kszongic/caesar-cli
Description: Caesar cipher encryption and decryption CLI tool
Author: kszongic
Latest version: 1.0.0

# @kszongic/caesar-cli

[![npm version](https://img.shields.io/npm/v/@kszongic/caesar-cli)](https://www.npmjs.com/package/@kszongic/caesar-cli)
[![license](https://img.shields.io/npm/l/@kszongic/caesar-cli)](./LICENSE)

> Caesar cipher encryption & decryption from the command line. Zero dependencies.

## Install

```bash
npm i -g @kszongic/caesar-cli
```

## Usage

```bash
# Default ROT13
caesar "Hello World"
# Uryyb Jbeyq

# Custom shift
caesar -s 3 "ATTACK AT DAWN"
# DWWDFN DW GDZQ

# Decrypt
caesar -d -s 3 "DWWDFN DW GDZQ"
# ATTACK AT DAWN

# Brute-force all 25 shifts
caesar -b "KHOOR ZRUOG"

# Pipe input
echo "secret message" | caesar
```

## Options

| Flag | Description |
|------|-------------|
| `-s, --shift <n>` | Shift amount (default: 13) |
| `-d, --decrypt` | Decrypt (reverse shift) |
| `-b, --brute` | Brute-force all 25 shifts |
| `-h, --help` | Show help |

## License

MIT © 2026 kszongic
npm package: @kszongic/chunk-cli
Description: Split files or stdin into chunks of N lines — zero dependencies
Author: kszongic
Latest version: 1.0.0

# @kszongic/chunk-cli

[![npm version](https://img.shields.io/npm/v/@kszongic/chunk-cli)](https://www.npmjs.com/package/@kszongic/chunk-cli)
[![license](https://img.shields.io/npm/l/@kszongic/chunk-cli)](./LICENSE)

Split files or stdin into chunks of N lines. Zero dependencies.

## Install

```bash
npm i -g @kszongic/chunk-cli
```

## Usage

```bash
# Split a file into 100-line chunks (default)
chunk-cli bigfile.txt

# Split into 50-line chunks in a specific directory
chunk-cli -n 50 -o parts/ data.csv

# Pipe from stdin
cat server.log | chunk-cli -n 1000 -p log_ -s .log

# Print to stdout with delimiter
chunk-cli --stdout -n 10 file.txt
```

## Options

| Flag | Description | Default |
|------|-------------|---------|
| `-n, --lines <num>` | Lines per chunk | `100` |
| `-o, --output <dir>` | Output directory | `.` |
| `-p, --prefix <str>` | Filename prefix | `chunk_` |
| `-s, --suffix <str>` | Filename suffix | `.txt` |
| `--stdout` | Print to stdout instead of files | off |
| `-d, --delimiter 
` | Stdout chunk separator | `---` |

## License

MIT © 2026 kszongic
npm package: @kszongic/color-convert-cli
Description: Convert colors between hex, rgb, and hsl from the CLI. Zero dependencies.
Author: kszongic
Latest version: 1.0.0

# color-convert-cli

[![npm version](https://img.shields.io/npm/v/color-convert-cli.svg)](https://www.npmjs.com/package/color-convert-cli)
[![license](https://img.shields.io/npm/l/color-convert-cli.svg)](./LICENSE)

Convert colors between **hex**, **rgb**, and **hsl** from the command line. Zero dependencies.

## Install

```bash
npm i -g color-convert-cli
```

Or use directly with npx:

```bash
npx color-convert-cli "#ff5733"
```

## Usage

```bash
# Show all formats
color-convert-cli "#ff5733"
# HEX: #ff5733
# RGB: rgb(255, 87, 51)
# HSL: hsl(11, 100%, 60%)

# Convert to a specific format
color-convert-cli "rgb(255,87,51)" --to hsl
# hsl(11, 100%, 60%)

# Generate a random color
color-convert-cli --random
color-convert-cli --random --to hex
```

## Supported Formats

| Input | Example |
|-------|---------|
| Hex | `#ff5733`, `ff5733`, `#f53` |
| RGB | `rgb(255, 87, 51)` |
| HSL | `hsl(11, 100%, 60%)` |

## License

MIT © [kszongic](https://github.com/kszongic)
npm package: @kszongic/crontab-next-cli
Description: CLI tool to show the next N run times for a cron expression
Author: kszongic
Latest version: 1.0.0

# @kszongic/crontab-next-cli

[![npm version](https://img.shields.io/npm/v/@kszongic/crontab-next-cli)](https://www.npmjs.com/package/@kszongic/crontab-next-cli)
[![license](https://img.shields.io/npm/l/@kszongic/crontab-next-cli)](./LICENSE)

Show the next N run times for a standard 5-field cron expression. Zero dependencies.

## Install

```bash
npm install -g @kszongic/crontab-next-cli
```

## Usage

```bash
# Next 5 run times (default)
crontab-next "*/15 * * * *"

# Next 10 weekday 9 AM runs
crontab-next "0 9 * * mon-fri" --count 10

# Next 3 monthly runs
crontab-next "30 2 1 * *" --count 3
```

## Cron Fields

```
┌───────────── minute (0-59)
│ ┌───────────── hour (0-23)
│ │ ┌───────────── day of month (1-31)
│ │ │ ┌───────────── month (1-12 or jan-dec)
│ │ │ │ ┌───────────── day of week (0-6 or sun-sat)
│ │ │ │ │
* * * * *
```

Supports: `*`, ranges (`1-5`), steps (`*/15`), lists (`1,15,30`), and named values (`mon`, `jan`).

## Options

| Option | Description |
|---|---|
| `--count N` | Number of future times to show (default: 5) |
| `--help` | Show help |
| `--version` | Show version |

## License

MIT
npm package: @kszongic/csv-pick-cli
Description: Pick specific columns from CSV data by name or index
Author: kszongic
Latest version: 1.0.0

# @kszongic/csv-pick-cli

[![npm version](https://img.shields.io/npm/v/@kszongic/csv-pick-cli)](https://www.npmjs.com/package/@kszongic/csv-pick-cli)
[![license](https://img.shields.io/npm/l/@kszongic/csv-pick-cli)](./LICENSE)

Pick specific columns from CSV data by name or index. Zero dependencies.

## Install

```bash
npm i -g @kszongic/csv-pick-cli
```

## Usage

```bash
# By column name
csv-pick name,email users.csv

# By index (0-based)
csv-pick 0,2,4 data.csv

# From stdin
cat data.csv | csv-pick name,age

# Custom delimiter (TSV)
csv-pick -d "\t" name,score data.tsv
```

### Example

```
$ echo "name,age,city\nAlice,30,NYC\nBob,25,LA" | csv-pick name,city
name,city
Alice,NYC
Bob,LA
```

## Features

- Pick columns by **name** or **0-based index**
- Handles **quoted fields** with commas and escaped quotes
- Custom **delimiter** support (TSV, pipe-separated, etc.)
- **Zero dependencies** — just Node.js
- Reads from **file** or **stdin**

## Options

| Flag | Description |
|------|-------------|
| `-d, --delimiter <char>` | Field delimiter (default: `,`) |
| `-h, --help` | Show help |
| `-v, --version` | Show version |

## License

MIT © 2026 kszongic
npm package: @kszongic/csv2json-cli
Description: Convert CSV to JSON from the command line — pipe-friendly, zero dependencies
Author: kszongic
Latest version: 1.0.0

# @kszongic/csv2json-cli

[![npm version](https://img.shields.io/npm/v/@kszongic/csv2json-cli)](https://www.npmjs.com/package/@kszongic/csv2json-cli)
[![license](https://img.shields.io/npm/l/@kszongic/csv2json-cli)](./LICENSE)

Convert CSV to JSON from the command line. Zero dependencies, pipe-friendly, handles quoted fields.

## Install

```bash
npm install -g @kszongic/csv2json-cli
```

## Usage

```bash
# Convert a file
csv2json data.csv

# Pipe from stdin
cat data.csv | csv2json

# Custom delimiter
csv2json -d ";" data.csv

# Array of arrays (skip header mapping)
csv2json --array data.csv

# Compact output
csv2json --compact data.csv
```

### Example

**input.csv:**
```
name,age,city
Alice,30,NYC
Bob,25,"San Francisco"
```

```bash
$ csv2json input.csv
[
  { "name": "Alice", "age": "30", "city": "NYC" },
  { "name": "Bob", "age": "25", "city": "San Francisco" }
]
```

## Options

| Flag | Description |
|------|-------------|
| `-d, --delimiter <char>` | Column delimiter (default: `,`) |
| `--array` | Output as array of arrays |
| `--compact` | Minified JSON |
| `--pretty` | Pretty-printed JSON (default) |
| `-v, --version` | Show version |
| `-h, --help` | Show help |

## License

MIT © 2026 kszongic
npm package: @kszongic/detect-unused-deps
Description: Find unused, missing, and phantom dependencies in your Node.js projects
Author: kszongic
Latest version: 1.0.0

# detect-unused-deps

[![npm version](https://img.shields.io/npm/v/detect-unused-deps.svg)](https://www.npmjs.com/package/detect-unused-deps)
[![license](https://img.shields.io/npm/l/detect-unused-deps.svg)](./LICENSE)

Find **unused**, **missing**, and **phantom** dependencies in your Node.js projects. Zero dependencies. Works with monorepos.

## Install

```bash
# Run directly (no install needed)
npx detect-unused-deps

# Or install globally
npm i -g detect-unused-deps
```

## Usage

```bash
# Scan current directory
detect-unused-deps

# Scan a specific directory
detect-unused-deps ./packages/my-app

# JSON output (great for CI)
detect-unused-deps --json

# Ignore specific packages (plugins, implicit deps)
detect-unused-deps --ignore @types/node,webpack-cli,babel-plugin-transform-runtime
```

## What it detects

| Category | Description |
|---|---|
| **Unused dependencies** | Listed in `dependencies` but never imported |
| **Unused devDependencies** | Listed in `devDependencies` but never imported |
| **Missing dependencies** | Imported in code but not in `package.json` |

## Features

- 🔍 Scans `.js`, `.jsx`, `.ts`, `.tsx`, `.mjs`, `.cjs`, `.mts`, `.cts` files
- 📦 Handles `import`, `require()`, dynamic `import()`, and re-exports
- 🏗️ Supports scoped packages (`@scope/pkg`)
- 🎯 Ignores `node_modules`, `dist`, `build`, `.git`, etc.
- 🌈 Color-coded terminal output
- 📊 JSON output for CI/CD pipelines
- 🚫 Zero dependencies
- ⚡ Fast — pure filesystem scan, no AST parsing overhead

## Programmatic API

```js
const { analyze } = require('detect-unused-deps');

const result = analyze('./my-project', {
  ignore: ['@types/node']
});

console.log(result);
// {
//   unused: ['lodash'],
//   unusedDev: ['jest'],
//   missing: ['chalk'],
//   stats: { filesScanned: 42, totalDeps: 10, totalDevDeps: 5, uniqueImports: 15 }
// }
```

## Exit codes

| Code | Meaning |
|---|---|
| `0` | No issues found |
| `1` | Unused or missing dependencies detected |
| `2` | Error (e.g., no `package.json`) |

## Tips

Some packages are used implicitly (Babel plugins, ESLint configs, type definitions). Use `--ignore` to skip them:

```bash
detect-unused-deps --ignore @types/node,eslint-config-prettier,babel-plugin-transform-runtime
```

## License

MIT
npm package: @kszongic/dotenv-gen-cli
Description: Generate .env files from .env.example templates with defaults and interactive prompts
Author: kszongic
Latest version: 1.0.0

# @kszongic/dotenv-gen-cli

[![npm version](https://img.shields.io/npm/v/@kszongic/dotenv-gen-cli)](https://www.npmjs.com/package/@kszongic/dotenv-gen-cli)
[![license](https://img.shields.io/npm/l/@kszongic/dotenv-gen-cli)](./LICENSE)

Generate `.env` files from `.env.example` templates — interactively or with defaults.

## Install

```bash
npm i -g @kszongic/dotenv-gen-cli
```

## Usage

```bash
# Interactive mode — prompts for each variable
dotenv-gen

# Use default values without prompting
dotenv-gen -d

# Custom template and output
dotenv-gen .env.production -o .env.prod

# Strip comments, overwrite existing
dotenv-gen --strip --force
```

## How It Works

Given a `.env.example` like:

```env
# Database
DB_HOST=localhost
DB_PORT=5432
DB_NAME=myapp

# Auth
JWT_SECRET=
API_KEY=changeme
```

Running `dotenv-gen` will prompt you for each value (showing defaults), then write `.env`.

Running `dotenv-gen -d` copies defaults as-is — great for CI/CD or quick setup.

## Options

| Flag | Description |
|------|-------------|
| `-o, --output <file>` | Output file (default: `.env`) |
| `-f, --force` | Overwrite existing output |
| `-d, --defaults` | Use defaults without prompting |
| `-s, --strip` | Remove comments from output |
| `-h, --help` | Show help |
| `-v, --version` | Show version |

## Why?

Every project has `.env.example`. Setting up `.env` manually is tedious and error-prone. This tool makes it a one-command operation.

## License

MIT © 2026 kszongic
npm package: @kszongic/editorconfig-gen-cli
Description: Generate .editorconfig files with presets or custom settings
Author: kszongic
Latest version: 1.0.0

# @kszongic/editorconfig-gen-cli

[![npm version](https://img.shields.io/npm/v/@kszongic/editorconfig-gen-cli)](https://www.npmjs.com/package/@kszongic/editorconfig-gen-cli)
[![license](https://img.shields.io/npm/l/@kszongic/editorconfig-gen-cli)](./LICENSE)

Generate `.editorconfig` files instantly with built-in presets.

## Install

```bash
npm i -g @kszongic/editorconfig-gen-cli
```

## Usage

```bash
# Generate with default preset (2-space, LF, UTF-8)
editorconfig-gen

# Use tabs preset
editorconfig-gen --preset tabs

# 4-space preset, print to stdout
editorconfig-gen --preset 4space --stdout

# List available presets
editorconfig-gen --list

# Custom output path
editorconfig-gen --output src/.editorconfig --force
```

## Presets

| Name | Style | Size |
|------|-------|------|
| `default` | space | 2 |
| `tabs` | tab | 4 |
| `4space` | space | 4 |
| `minimal` | space | 2 |

## Options

| Flag | Description |
|------|-------------|
| `--preset <name>` | Choose preset (default: `default`) |
| `--output <path>` | Output file (default: `.editorconfig`) |
| `--stdout` | Print to stdout |
| `--force` | Overwrite existing file |
| `--list` | Show available presets |
| `-h, --help` | Show help |

## Zero Dependencies

No dependencies. Just Node.js.

## License

MIT © 2026 kszongic
npm package: @kszongic/env-merge-cli
Description: Merge multiple .env files with last-wins precedence
Author: kszongic
Latest version: 1.0.0

# @kszongic/env-merge-cli

[![npm version](https://img.shields.io/npm/v/@kszongic/env-merge-cli)](https://www.npmjs.com/package/@kszongic/env-merge-cli)
[![license](https://img.shields.io/npm/l/@kszongic/env-merge-cli)](./LICENSE)

Merge multiple `.env` files with last-wins precedence. Zero dependencies.

## Install

```bash
npm i -g @kszongic/env-merge-cli
```

## Usage

```bash
# Merge with later files overriding earlier ones
env-merge .env.defaults .env .env.local

# Write to file instead of stdout
env-merge .env.defaults .env -o .env.merged

# Sort keys alphabetically
env-merge .env.defaults .env --sort
```

## Options

| Flag | Description |
|------|-------------|
| `-o, --output <file>` | Write to file instead of stdout |
| `-s, --sort` | Sort keys alphabetically |
| `-h, --help` | Show help |
| `-v, --version` | Show version |

## Example

`.env.defaults`:
```
APP_PORT=3000
DB_HOST=localhost
DEBUG=false
```

`.env.local`:
```
DEBUG=true
APP_PORT=8080
```

```bash
$ env-merge .env.defaults .env.local
APP_PORT=8080
DB_HOST=localhost
DEBUG=true
```

## License

MIT © 2026 kszongic
npm package: @kszongic/env-to-json-cli
Description: Convert .env files to JSON from the command line — pipe-friendly, zero dependencies
Author: kszongic
Latest version: 1.0.0

# @kszongic/env-to-json-cli

[![npm version](https://img.shields.io/npm/v/@kszongic/env-to-json-cli)](https://www.npmjs.com/package/@kszongic/env-to-json-cli)
[![license](https://img.shields.io/npm/l/@kszongic/env-to-json-cli)](./LICENSE)

Convert `.env` files to JSON from the command line — pipe-friendly, zero dependencies.

## Install

```bash
npm install -g @kszongic/env-to-json-cli
```

## Usage

```bash
# Read .env in current directory
env-to-json

# Read a specific file
env-to-json .env.production

# Pretty-print
env-to-json -p

# Pipe from stdin
cat .env | env-to-json

# Combine with jq
env-to-json | jq '.DATABASE_URL'
```

## Options

| Flag | Description |
|------|-------------|
| `-p, --pretty` | Pretty-print JSON output |
| `-q, --quoted` | Preserve surrounding quotes on values |
| `-h, --help` | Show help |
| `-v, --version` | Show version |

## Parsing Rules

- Skips blank lines and comments (`#`)
- Strips `export` prefix
- Strips surrounding single/double quotes (unless `--quoted`)
- Handles `KEY=VALUE` format

## Example

```
# .env
DB_HOST=localhost
DB_PORT=5432
API_KEY="my-secret-key"
```

```bash
$ env-to-json -p
{
  "DB_HOST": "localhost",
  "DB_PORT": "5432",
  "API_KEY": "my-secret-key"
}
```

## License

MIT © 2026 kszongic
npm package: @kszongic/epoch-cli
Description: Convert between epoch timestamps and human-readable dates from the command line
Author: kszongic
Latest version: 1.0.0

# @kszongic/epoch-cli

[![npm version](https://img.shields.io/npm/v/@kszongic/epoch-cli)](https://www.npmjs.com/package/@kszongic/epoch-cli)
[![license](https://img.shields.io/npm/l/@kszongic/epoch-cli)](./LICENSE)

Convert between epoch timestamps and human-readable dates from the command line. Zero dependencies.

## Install

```bash
npm install -g @kszongic/epoch-cli
```

## Usage

```bash
# Current time
epoch now

# Epoch seconds → date
epoch 1709683200

# Epoch milliseconds → date (auto-detected)
epoch 1709683200000

# Date string → epoch
epoch "2024-03-06T00:00:00Z"
epoch "March 6, 2024"

# Force milliseconds or seconds
epoch -ms 1709683200000
epoch -s 1709683200
```

## Output

```
ISO:          2024-03-06T00:00:00.000Z
UTC:          Wed, 06 Mar 2024 00:00:00 GMT
Local:        Wed Mar 06 2024 00:00:00 GMT+0000
Epoch (s):    1709683200
Epoch (ms):   1709683200000
```

## License

MIT © 2026 kszongic
npm package: @kszongic/file-tree-cli
Description: Print a directory tree in your terminal. Zero dependencies.
Author: kszongic
Latest version: 1.0.0

# file-tree-cli

[![npm version](https://img.shields.io/npm/v/file-tree-cli)](https://www.npmjs.com/package/file-tree-cli)
[![license](https://img.shields.io/npm/l/file-tree-cli)](./LICENSE)

Print a directory tree in your terminal. Zero dependencies.

## Install

```bash
npm i -g file-tree-cli
```

## Usage

```bash
file-tree                  # current directory
file-tree src              # specific directory
file-tree -L 2             # limit depth to 2
file-tree -a               # show hidden files
file-tree -d               # directories only
file-tree src -L 3 -a      # combine options
```

## Example Output

```
/home/user/project
├── index.js
├── package.json
├── src
│   ├── app.js
│   └── utils.js
└── README.md

1 directories, 4 files
```

## License

MIT © 2026 kszongic
npm package: @kszongic/fnv-hash-cli
Description: Fast FNV-1a hash for strings and files. Zero dependencies.
Author: kszongic
Latest version: 1.0.0

# fnv-hash-cli

[![npm version](https://img.shields.io/npm/v/@kszongic/fnv-hash-cli.svg)](https://www.npmjs.com/package/@kszongic/fnv-hash-cli)
[![license](https://img.shields.io/npm/l/@kszongic/fnv-hash-cli.svg)](./LICENSE)

Fast FNV-1a hash for strings and files. Zero dependencies.

## Install

```bash
npm install -g @kszongic/fnv-hash-cli
```

## Usage

```bash
# Hash a string (32-bit, default)
$ fnv-hash "hello world"
d58b3fa7

# Hash with 64-bit
$ fnv-hash --64 "hello world"
779a65e7023cd2e7

# Hash a file
$ fnv-hash --file package.json
a3b2c1d0

# Pipe from stdin
$ echo "hello" | fnv-hash
```

## Options

| Flag | Description |
|------|-------------|
| `--32` | FNV-1a 32-bit (default) |
| `--64` | FNV-1a 64-bit |
| `--file, -f` | Hash a file |
| `--help, -h` | Show help |
| `--version, -v` | Show version |

## Why FNV-1a?

FNV-1a is a fast, non-cryptographic hash with excellent distribution. Perfect for hash tables, checksums, and fingerprinting. Not suitable for security purposes.

## License

MIT © [kszongic](https://github.com/kszongic)
npm package: @kszongic/gcd-cli
Description: Compute GCD and LCM of numbers from the command line
Author: kszongic
Latest version: 1.0.0

# @kszongic/gcd-cli

[![npm version](https://img.shields.io/npm/v/@kszongic/gcd-cli)](https://www.npmjs.com/package/@kszongic/gcd-cli)
[![license](https://img.shields.io/npm/l/@kszongic/gcd-cli)](./LICENSE)

> Compute GCD and LCM of numbers from the command line. Zero dependencies.

## Install

```bash
npm install -g @kszongic/gcd-cli
```

## Usage

```bash
# Greatest Common Divisor (default)
gcd-cli 12 18
# 6

# Least Common Multiple
gcd-cli --lcm 4 6
# 12

# Both at once
gcd-cli --both 12 18 24
# GCD: 6  LCM: 72

# Works with any number of integers
gcd-cli 100 75 50
# 25
```

## Options

| Flag | Description |
|------|-------------|
| `--gcd` | Show only GCD (default) |
| `--lcm` | Show only LCM |
| `--both` | Show both GCD and LCM |
| `-v, --version` | Show version |
| `-h, --help` | Show help |

## License

MIT © 2026 kszongic
npm package: @kszongic/git-standup
Description: See what you worked on yesterday — a CLI tool that shows git log summaries for standups
Author: kszongic
Latest version: 1.0.3

# @kszongic/git-standup

[![npm version](https://img.shields.io/npm/v/@kszongic/git-standup.svg)](https://www.npmjs.com/package/@kszongic/git-standup)
[![license](https://img.shields.io/npm/l/@kszongic/git-standup.svg)](https://github.com/kszongic/git-standup/blob/main/LICENSE)

> 🧑‍💻 See what you worked on yesterday — a CLI tool for daily standups

**Zero dependencies.** Just runs `git log` under the hood.

## Install

```bash
npm i -g @kszongic/git-standup
```

Or run directly:

```bash
npx @kszongic/git-standup
```

## Usage

```bash
# In any git repo — shows your commits since last working day
git-standup

# Look back 7 days
git-standup --days 7

# Show all authors
git-standup --all

# Filter by author
git-standup --author "John"

# Custom date range
git-standup --since 2025-01-01 --until 2025-01-31

# Scan multiple repos in a directory
git-standup ~/projects
```

## Output

```
  Wednesday, 2025-03-05
    ● 14:23 a1b2c3d fix: resolve edge case in parser — John
    ● 10:05 e4f5a6b feat: add dark mode support — John

  Tuesday, 2025-03-04
    ● 16:30 b7c8d9e docs: update README — John
```

## Options

| Option | Description |
|---|---|
| `--days <N>` | Look back N days (default: last working day, skips weekends) |
| `--since <date>` | Start date (YYYY-MM-DD) |
| `--until <date>` | End date (YYYY-MM-DD) |
| `--author <name>` | Filter by author name |
| `--all` | Show commits from all authors |
| `-h, --help` | Show help |

## How It Works

- By default, shows commits since the **last working day** (skips weekends)
- On Monday, it shows Friday's commits
- Pass a directory containing multiple git repos to scan them all
- Uses your `git config user.name` as the default author filter
- Colorful terminal output grouped by date

## License

MIT
npm package: @kszongic/git-standup-cli
Description: See what you worked on yesterday — a CLI tool that shows git log summaries for standups
Author: kszongic
Latest version: 1.0.0

# @kszongic/git-standup

[![npm version](https://img.shields.io/npm/v/@kszongic/git-standup.svg)](https://www.npmjs.com/package/@kszongic/git-standup)
[![license](https://img.shields.io/npm/l/@kszongic/git-standup.svg)](https://github.com/kszongic/git-standup/blob/main/LICENSE)

> 🧑‍💻 See what you worked on yesterday — a CLI tool for daily standups

**Zero dependencies.** Just runs `git log` under the hood.

## Install

```bash
npm i -g @kszongic/git-standup
```

Or run directly:

```bash
npx @kszongic/git-standup
```

## Usage

```bash
# In any git repo — shows your commits since last working day
git-standup

# Look back 7 days
git-standup --days 7

# Show all authors
git-standup --all

# Filter by author
git-standup --author "John"

# Custom date range
git-standup --since 2025-01-01 --until 2025-01-31

# Scan multiple repos in a directory
git-standup ~/projects
```

## Output

```
  Wednesday, 2025-03-05
    ● 14:23 a1b2c3d fix: resolve edge case in parser — John
    ● 10:05 e4f5a6b feat: add dark mode support — John

  Tuesday, 2025-03-04
    ● 16:30 b7c8d9e docs: update README — John
```

## Options

| Option | Description |
|---|---|
| `--days <N>` | Look back N days (default: last working day, skips weekends) |
| `--since <date>` | Start date (YYYY-MM-DD) |
| `--until <date>` | End date (YYYY-MM-DD) |
| `--author <name>` | Filter by author name |
| `--all` | Show commits from all authors |
| `-h, --help` | Show help |

## How It Works

- By default, shows commits since the **last working day** (skips weekends)
- On Monday, it shows Friday's commits
- Pass a directory containing multiple git repos to scan them all
- Uses your `git config user.name` as the default author filter
- Colorful terminal output grouped by date

## License

MIT
npm package: @kszongic/gitignore-gen
Description: CLI tool to generate .gitignore files from 20+ templates. Usage: npx gitignore-gen node,python,macos
Author: kszongic
Latest version: 1.0.0

# gitignore-gen

[![npm version](https://img.shields.io/npm/v/gitignore-gen.svg)](https://www.npmjs.com/package/gitignore-gen)
[![license](https://img.shields.io/npm/l/gitignore-gen.svg)](https://github.com/kszongic/gitignore-gen/blob/main/LICENSE)

Generate `.gitignore` files from 20+ built-in templates. Zero dependencies.

## Usage

```bash
npx gitignore-gen node,python,macos
```

## Install

```bash
npm install -g gitignore-gen
```

## Templates

| Category | Templates |
|----------|-----------|
| Languages | `node` `python` `java` `go` `rust` `ruby` `swift` `kotlin` |
| OS | `macos` `windows` `linux` |
| Editors | `vscode` `jetbrains` `vim` |
| Frameworks | `react` `vue` `angular` |
| Tools | `docker` `terraform` `unity` |

## Examples

```bash
# Web project
gitignore-gen node,react,macos,vscode

# Backend
gitignore-gen python,linux,docker

# Mobile
gitignore-gen swift,macos,jetbrains

# List all templates
gitignore-gen --list
```

## Options

- `--help` — Show help
- `--list` — List available templates
- `--force` — Overwrite existing .gitignore

## License

MIT © [kszongic](https://github.com/kszongic)
npm package: @kszongic/hash-file-cli
Description: Hash files using MD5, SHA-1, SHA-256, SHA-512 from the command line. Zero dependencies.
Author: kszongic
Latest version: 1.3.0

# @kszongic/hash-file-cli

[![npm version](https://img.shields.io/npm/v/@kszongic/hash-file-cli)](https://www.npmjs.com/package/@kszongic/hash-file-cli)
[![license](https://img.shields.io/npm/l/@kszongic/hash-file-cli)](./LICENSE)

Hash files from the command line. Supports MD5, SHA-1, SHA-256, and SHA-512. Zero dependencies.

## Install

```bash
npm install -g @kszongic/hash-file-cli
```

## Usage

```bash
# SHA-256 (default)
hash-file package.json
# a1b2c3...  package.json

# MD5
hash-file -a md5 *.txt

# SHA-512
hash-file -a sha512 image.png

# Verify checksums
hash-file -c checksums.txt
```

## Options

| Flag | Description | Default |
|------|-------------|---------|
| `-a, --algorithm <alg>` | md5, sha1, sha256, sha512 | sha256 |
| `-c, --check <file>` | Verify hashes from checksum file | — |
| `-h, --help` | Show help | — |
| `-v, --version` | Show version | — |

## Output Format

Compatible with `sha256sum` / `md5sum`:

```
<hash>  <filename>
```

## License

MIT © 2026 kszongic
npm package: @kszongic/hex-encode-cli
Description: Encode and decode hex strings from the command line
Author: kszongic
Latest version: 1.0.0

# hex-encode-cli

[![npm version](https://img.shields.io/npm/v/@kszongic/hex-encode-cli)](https://www.npmjs.com/package/@kszongic/hex-encode-cli)
[![license](https://img.shields.io/npm/l/@kszongic/hex-encode-cli)](./LICENSE)

Encode text to hexadecimal and decode hex back to text. Zero dependencies.

## Install

```bash
npm install -g @kszongic/hex-encode-cli
```

## Usage

```bash
# Encode text to hex
hex-encode "hello world"
# 68656c6c6f20776f726c64

# Decode hex to text
hex-encode -d 68656c6c6f20776f726c64
# hello world

# Uppercase output
hex-encode -u "hello"
# 48454C4C4F

# Custom separator
hex-encode -s : "hello"
# 68:65:6c:6c:6f

# Pipe from stdin
echo "hello" | hex-encode

# Decode with separators (auto-stripped)
hex-encode -d "68:65:6c:6c:6f"
# hello
```

## Options

| Flag | Description |
|------|-------------|
| `-d, --decode` | Decode hex string to text |
| `-u, --upper` | Uppercase hex output |
| `-s, --sep CHAR` | Separator between hex bytes |
| `-h, --help` | Show help |
| `-v, --version` | Show version |

## License

MIT © kszongic
npm package: @kszongic/histogram-cli
Description: Render text histograms from numbers on stdin
Author: kszongic
Latest version: 1.0.0

# @kszongic/histogram-cli

[![npm version](https://img.shields.io/npm/v/@kszongic/histogram-cli)](https://www.npmjs.com/package/@kszongic/histogram-cli)
[![license](https://img.shields.io/npm/l/@kszongic/histogram-cli)](./LICENSE)

Render text histograms from numbers on stdin. Zero dependencies.

## Install

```bash
npm i -g @kszongic/histogram-cli
```

## Usage

```bash
# Basic histogram from sequential numbers
seq 100 | histogram

# Space-separated input with custom bins
echo "1 2 2 3 3 3 4 4 4 4" | histogram --bins 4

# Read from file with custom width and character
cat data.txt | histogram -w 60 -c '#'
```

## Options

| Flag | Description | Default |
|------|-------------|---------|
| `-b, --bins <n>` | Number of bins | 10 |
| `-w, --width <n>` | Max bar width in chars | 40 |
| `-c, --char <ch>` | Bar character | █ |
| `-h, --help` | Show help | |
| `-v, --version` | Show version | |

## Example Output

```
[1.000, 1.750)  | ██████████ 1
[1.750, 2.500)  | ████████████████████ 2
[2.500, 3.250)  | ██████████████████████████████ 3
[3.250, 4.000)  | ████████████████████████████████████████ 4

n=10  min=1  max=4  bins=4
```

## License

MIT
npm package: @kszongic/html2text-cli
Description: Strip HTML tags and decode entities — simple CLI tool to convert HTML to plain text
Author: kszongic
Latest version: 1.0.0

# @kszongic/html2text-cli

[![npm version](https://img.shields.io/npm/v/@kszongic/html2text-cli)](https://www.npmjs.com/package/@kszongic/html2text-cli)
[![license](https://img.shields.io/npm/l/@kszongic/html2text-cli)](LICENSE)

Strip HTML tags and decode entities — convert HTML to plain text from the command line.

Zero dependencies. Works with files or stdin.

## Install

```bash
npm install -g @kszongic/html2text-cli
```

## Usage

```bash
# Convert a file
html2text page.html

# Pipe from stdin
curl -s https://example.com | html2text

# Pipe from echo
echo "<h1>Hello</h1><p>World &amp; friends</p>" | html2text
# Hello
# World & friends
```

## Features

- Strips all HTML tags
- Decodes common HTML entities (`&amp;`, `&lt;`, `&#123;`, `&#x7B;`, etc.)
- Removes `<script>` and `<style>` blocks
- Converts `<br>` and block-level tags to newlines
- Collapses excessive blank lines
- Zero dependencies

## Options

| Flag | Description |
|------|-------------|
| `-h, --help` | Show help |
| `-v, --version` | Show version |

## License

MIT © 2026 kszongic
npm package: @kszongic/http-status-cli
Description: Look up HTTP status codes from the command line — code, name, and description
Author: kszongic
Latest version: 1.0.0

# @kszongic/http-status-cli

[![npm version](https://img.shields.io/npm/v/@kszongic/http-status-cli)](https://www.npmjs.com/package/@kszongic/http-status-cli)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)

Look up HTTP status codes from the command line — code, name, and description.

Zero dependencies. Works everywhere Node.js runs.

## Install

```bash
npm install -g @kszongic/http-status-cli
```

## Usage

```bash
# Look up a specific code
http-status 404
#   404 Not Found
#   The requested resource could not be found.

# Browse a range
http-status 2xx
#   200  OK — The request succeeded.
#   201  Created — The request succeeded and a new resource was created.
#   ...

# Search by keyword
http-status teapot
#   418  I'm a Teapot — The server refuses to brew coffee because it is, permanently, a teapot.

# List all codes
http-status --list
```

## License

MIT © 2026 kszongic
npm package: @kszongic/join-lines-cli
Description: Join lines from stdin with a custom delimiter
Author: kszongic
Latest version: 1.0.0

# join-lines-cli

[![npm version](https://img.shields.io/npm/v/@kszongic/join-lines-cli)](https://www.npmjs.com/package/@kszongic/join-lines-cli)
[![license](https://img.shields.io/npm/l/@kszongic/join-lines-cli)](./LICENSE)

Join lines from stdin with a custom delimiter. Zero dependencies.

## Install

```bash
npm i -g @kszongic/join-lines-cli
```

## Usage

```bash
# Join with comma (default)
echo -e "a\nb\nc" | join-lines
# a,b,c

# Custom delimiter
echo -e "a\nb\nc" | join-lines -d " | "
# a | b | c

# Join with space
ls | join-lines -s
# file1 file2 file3

# Trim whitespace from each line
echo -e " a \n b " | join-lines --trim -d -
# a-b
```

## Options

| Flag | Description |
|------|-------------|
| `-d, --delimiter <str>` | Delimiter string (default: `,`) |
| `-s, --space` | Join with a space |
| `-n, --newline` | Join with newline |
| `-0, --null` | Join with null byte |
| `--trim` | Trim each line before joining |
| `-h, --help` | Show help |
| `-v, --version` | Show version |

## License

MIT © kszongic
npm package: @kszongic/jsonc-strip-cli
Description: Strip comments from JSONC files to produce valid JSON
Author: kszongic
Latest version: 1.0.0

# @kszongic/jsonc-strip-cli

[![npm version](https://img.shields.io/npm/v/@kszongic/jsonc-strip-cli)](https://www.npmjs.com/package/@kszongic/jsonc-strip-cli)
[![license](https://img.shields.io/npm/l/@kszongic/jsonc-strip-cli)](./LICENSE)

Strip comments and trailing commas from JSONC files to produce valid JSON. Zero dependencies.

Handles `//` single-line comments, `/* */` multi-line comments, and trailing commas — the three things that make JSONC files invalid JSON.

## Install

```bash
npm install -g @kszongic/jsonc-strip-cli
```

## Usage

```bash
# Strip comments from a file
jsonc-strip tsconfig.json

# Pipe from stdin
cat config.jsonc | jsonc-strip

# Edit in-place
jsonc-strip -i tsconfig.json

# Minified output
jsonc-strip -m config.jsonc

# Custom indentation
jsonc-strip -s 4 config.jsonc
```

## Options

| Flag | Description |
|------|-------------|
| `-i, --in-place` | Overwrite the file with stripped output |
| `-m, --minify` | Output minified JSON |
| `-s, --spaces N` | Indentation spaces (default: 2) |
| `-h, --help` | Show help |
| `-v, --version` | Show version |

## Example

Input (`tsconfig.json`):
```jsonc
{
  // TypeScript compiler options
  "compilerOptions": {
    "target": "ES2020", /* output target */
    "strict": true,
  }
}
```

Output:
```json
{
  "compilerOptions": {
    "target": "ES2020",
    "strict": true
  }
}
```

## License

MIT © kszongic
npm package: @kszongic/kill-port-cli
Description: Find and kill processes using a specific port. Zero dependencies.
Author: kszongic
Latest version: 1.0.4

# kill-port-cli

[![npm version](https://img.shields.io/npm/v/kill-port-cli.svg)](https://www.npmjs.com/package/kill-port-cli)
[![license](https://img.shields.io/npm/l/kill-port-cli.svg)](https://github.com/kszongic/kill-port-cli/blob/main/LICENSE)

Find and kill processes using a specific port. **Zero dependencies.** Works on Windows, macOS, and Linux.

## Install

```bash
npm i -g kill-port-cli
```

Or use directly with npx:

```bash
npx kill-port-cli 3000
```

## Usage

```bash
# Kill process on port 3000
kill-port-cli 3000

# Kill multiple ports at once
kill-port-cli 3000 8080 5432

# List all listening ports
kill-port-cli --list
```

## API

| Argument | Description |
|---|---|
| `<port> [port...]` | Kill processes on the given port(s) |
| `--list`, `-l` | List all listening ports and their PIDs |
| `--help`, `-h` | Show help |

## License

MIT © 2026 kszongic
npm package: @kszongic/line-count-cli
Description: Count lines, words, and characters in files — a lightweight wc alternative for Node.js
Author: kszongic
Latest version: 1.0.0

# @kszongic/line-count-cli

[![npm version](https://img.shields.io/npm/v/@kszongic/line-count-cli)](https://www.npmjs.com/package/@kszongic/line-count-cli)
[![license](https://img.shields.io/npm/l/@kszongic/line-count-cli)](LICENSE)

Count lines, words, and characters in files — a lightweight `wc` alternative for Node.js. Zero dependencies.

## Install

```bash
npm install -g @kszongic/line-count-cli
```

## Usage

```bash
# Count everything in a file
line-count file.txt
#      42      310     1893 file.txt

# Lines only
line-count -l src/*.js
#      18 src/index.js
#      35 src/utils.js

# Words across multiple files with totals
line-count --words --total README.md package.json
#     310 README.md
#      25 package.json
#     335 total
```

## Options

| Flag | Description |
|------|-------------|
| `-l, --lines` | Show only line count |
| `-w, --words` | Show only word count |
| `-c, --chars` | Show only character count |
| `-t, --total` | Show totals for multiple files |
| `-h, --help` | Show help |
| `-v, --version` | Show version |

## License

MIT © 2026 kszongic
npm package: @kszongic/lorem-gen-cli
Description: Generate lorem ipsum text from the command line — words, sentences, or paragraphs
Author: kszongic
Latest version: 1.0.0

# lorem-gen-cli

[![npm version](https://img.shields.io/npm/v/lorem-gen-cli)](https://www.npmjs.com/package/lorem-gen-cli)
[![license](https://img.shields.io/npm/l/lorem-gen-cli)](./LICENSE)
[![downloads](https://img.shields.io/npm/dm/lorem-gen-cli)](https://www.npmjs.com/package/lorem-gen-cli)

Generate lorem ipsum placeholder text from the command line. Zero dependencies.

## Install

```bash
npm install -g lorem-gen-cli
```

Or use directly with npx:

```bash
npx lorem-gen-cli --words 50
```

## Usage

```bash
lorem-gen-cli --words 50          # Generate 50 words
lorem-gen-cli --sentences 5       # Generate 5 sentences
lorem-gen-cli --paragraphs 3      # Generate 3 paragraphs
lorem-gen-cli --sentences 5 --copy  # Generate & copy to clipboard
```

## Options

| Flag | Description |
|------|-------------|
| `--words <n>` | Generate n words |
| `--sentences <n>` | Generate n sentences |
| `--paragraphs <n>` | Generate n paragraphs |
| `--copy` | Copy output to clipboard |
| `--help` | Show help |

## License

MIT © 2026 kszongic
npm package: @kszongic/luhn-cli
Description: Validate and generate Luhn-checksum numbers (credit cards, IMEIs, etc.) from the command line
Author: kszongic
Latest version: 1.0.0

# @kszongic/luhn-cli

[![npm version](https://img.shields.io/npm/v/@kszongic/luhn-cli)](https://www.npmjs.com/package/@kszongic/luhn-cli)
[![license](https://img.shields.io/npm/l/@kszongic/luhn-cli)](./LICENSE)

Validate and generate Luhn-checksum numbers (credit cards, IMEIs, national IDs) from the command line. Zero dependencies.

## Install

```bash
npm install -g @kszongic/luhn-cli
```

## Usage

```bash
# Validate a number
luhn validate 4539578763621486
# ✓ 4539578763621486 is valid

# Append check digit to a partial number
luhn generate 453957876362148
# 4539578763621486

# Generate a random valid number
luhn random 16
# 7284930156742839

# Shorthand — just pass a number
luhn 4539578763621486
```

## Commands

| Command | Description |
|---------|-------------|
| `validate <number>` | Check if number passes Luhn algorithm |
| `generate <partial>` | Append the correct check digit |
| `random [length]` | Generate a random valid number (default: 16) |

## License

MIT © 2026 kszongic