open-index/open-npm huggingface dataset:
npm package: @lxgicstudios/json-to-yaml
Description: Bidirectional JSON to YAML converter. Pipe-friendly CLI with sort-keys and indent options. Convert config files instantly. Free CLI tool.
Author: LXGIC Studios
Latest version: 1.0.0

# json-to-yaml

[![npm version](https://img.shields.io/npm/v/@lxgicstudios/json-to-yaml.svg)](https://www.npmjs.com/package/@lxgicstudios/json-to-yaml)
[![license](https://img.shields.io/npm/l/@lxgicstudios/json-to-yaml.svg)](https://github.com/lxgicstudios/json-to-yaml/blob/main/LICENSE)
[![node](https://img.shields.io/node/v/@lxgicstudios/json-to-yaml.svg)](https://nodejs.org)

Bidirectional JSON/YAML converter that works from the command line. Pipe-friendly, auto-detects format, and lets you sort keys and control indentation. One dependency (js-yaml).

## Install

```bash
npm install -g @lxgicstudios/json-to-yaml
```

Or run directly:

```bash
npx @lxgicstudios/json-to-yaml config.json
```

## Features

- Auto-detect input format (JSON or YAML) and convert to the other
- Force direction with `--to-yaml` or `--to-json`
- Pipe-friendly (reads from stdin)
- Sort keys alphabetically with `--sort-keys`
- Custom indentation with `--indent`
- Write to file with `--output`
- Compact YAML output with `--compact`
- Works with deeply nested structures

## Usage

### Auto-detect and convert

```bash
json-to-yaml config.json       # outputs YAML
json-to-yaml config.yaml       # outputs JSON
```

### Pipe from stdin

```bash
cat data.json | json-to-yaml
echo '{"name": "test"}' | json-to-yaml
curl -s https://api.example.com/data | json-to-yaml
```

### Sort keys

```bash
json-to-yaml --sort-keys package.json
```

### Custom indent

```bash
json-to-yaml --indent 4 config.json
```

### Save to file

```bash
json-to-yaml config.json -o config.yaml
json-to-yaml docker-compose.yml -o docker-compose.json
```

## Options

| Option | Alias | Default | Description |
|--------|-------|---------|-------------|
| `--help` | `-h` | | Show help message |
| `--to-yaml` | `-y` | | Force JSON to YAML conversion |
| `--to-json` | `-j` | | Force YAML to JSON conversion |
| `--sort-keys` | `-s` | | Sort object keys alphabetically |
| `--indent` | `-i` | `2` | Indentation level |
| `--output` | `-o` | | Write output to file |
| `--compact` | | | Use compact/flow YAML style |
| `--no-color` | | | Disable colored output |

## License

MIT - [LXGIC Studios](https://lxgicstudios.com)
npm package: @lxgicstudios/jsonmorph
Description: Transform JSON like a pro. Query, reshape, flatten, diff, and convert JSON data. jq alternative for Node.
Author: LXGIC Studios
Latest version: 1.0.0

# jsonmorph

Transform JSON like a pro. Query, reshape, flatten, diff, and convert JSON data. A jq alternative for Node.

## Installation

```bash
npm install -g @lxgicstudios/jsonmorph
```

Or use directly:

```bash
npx @lxgicstudios/jsonmorph query data.json ".users[*].name"
```

## Commands

### Query with path expressions

```bash
# Get nested value
jsonmorph query data.json ".config.database.host"

# Get all items in array
jsonmorph query data.json ".users[*].name"

# Get specific index
jsonmorph query data.json ".items[0]"

# Deep search (find key anywhere)
jsonmorph query data.json "..email"
```

### Flatten / Unflatten

```bash
# Flatten nested object to dot notation
jsonmorph flatten nested.json
# { "user.name": "John", "user.address.city": "NYC" }

# Unflatten back to nested
jsonmorph unflatten flat.json
```

### Diff two files

```bash
jsonmorph diff old.json new.json
```

Output:
```
+ Added:
  users[2].name

- Removed:
  config.debug

~ Changed:
  version: "1.0.0" → "2.0.0"
```

### Merge files

```bash
jsonmorph merge base.json overrides.json -o merged.json
```

### Pick / Omit keys

```bash
# Keep only specific keys
jsonmorph pick user.json name email

# Remove specific keys
jsonmorph omit user.json password ssn
```

### Transform structure

```bash
# Rename keys
jsonmorph transform data.json "id:_id,name:title"
```

### Validate against schema

```bash
jsonmorph validate data.json schema.json
```

### Minify / Prettify

```bash
jsonmorph minify data.json -o data.min.json
jsonmorph prettify data.min.json
```

## Path Syntax

| Syntax | Description |
|--------|-------------|
| `.key` | Access object property |
| `[0]` | Access array index |
| `[*]` | All array elements |
| `..key` | Deep search for key |

## Programmatic Usage

```javascript
const { query, flatten, diff, merge } = require('@lxgicstudios/jsonmorph');

// Query
const names = query(data, '.users[*].name');

// Flatten
const flat = flatten({ user: { name: 'John' } });
// { 'user.name': 'John' }

// Diff
const changes = diff(oldData, newData);

// Merge
const merged = merge(defaults, userConfig);
```

## Why jsonmorph?

- **Zero dependencies** - Pure JavaScript
- **Intuitive syntax** - Similar to jq but simpler
- **Powerful diffing** - See exactly what changed
- **Schema validation** - Catch errors early

---

**Built by [LXGIC Studios](https://lxgicstudios.com)**

🔗 [GitHub](https://github.com/lxgicstudios/jsonmorph) · [Twitter](https://x.com/lxgicstudios)
npm package: @lxgicstudios/jwt-decode
Description: Decode and inspect JWT tokens from the command line
Author: LXGIC Studios
Latest version: 1.0.0

# @lxgicstudios/jwt-decode

Decode and inspect JWT tokens from the command line.

See what's inside your tokens. Check if they're expired. No more jwt.io tabs.

## Installation

```bash
# Use directly with npx (recommended)
npx @lxgicstudios/jwt-decode <token>

# Or install globally
npm install -g @lxgicstudios/jwt-decode
```

## Usage

```bash
# Decode a token
npx @lxgicstudios/jwt-decode eyJhbGciOiJIUzI1NiIs...

# Works with "Bearer " prefix
npx @lxgicstudios/jwt-decode "Bearer eyJhbGci..."

# Pipe from env var
echo $AUTH_TOKEN | npx @lxgicstudios/jwt-decode

# Read from file
npx @lxgicstudios/jwt-decode -f token.txt

# Check if expired (for scripts)
npx @lxgicstudios/jwt-decode --check $TOKEN && echo "Valid"
```

## Example Output

```
Header
──────
  alg: "HS256"
  typ: "JWT"

Payload
───────
  sub: "1234567890"
  name: "John Doe"
  email: "john@example.com"
  iat: 1706547200 (2024-01-29T16:00:00.000Z)
  exp: 1706633600 (2024-01-30T16:00:00.000Z)

Status
──────
  Valid - expires in 23 hours
  Issued: 2024-01-29T16:00:00.000Z
```

## Options

| Option | Description |
|--------|-------------|
| `-f, --file <path>` | Read token from file |
| `-c, --claim <name>` | Extract specific claim only |
| `--header` | Show only header |
| `--payload` | Show only payload |
| `--json` | Output as JSON |
| `--check` | Check expiration (exit 1 if expired) |
| `-h, --help` | Show help |

## Examples

```bash
# Extract user ID
npx @lxgicstudios/jwt-decode -c sub $TOKEN

# Get expiration as JSON
npx @lxgicstudios/jwt-decode --json $TOKEN | jq .expiresIn

# Use in scripts
if npx @lxgicstudios/jwt-decode --check $TOKEN 2>/dev/null; then
  echo "Token is valid"
else
  echo "Token expired, refreshing..."
fi
```

## Programmatic API

```typescript
import { 
  decodeJwt, 
  getJwtExpiration, 
  getJwtClaim, 
  isValidJwtStructure 
} from '@lxgicstudios/jwt-decode';

// Decode full token
const decoded = decodeJwt(token);
console.log(decoded.payload.sub);
console.log(decoded.isExpired);

// Get expiration info
const { isExpired, expiresAt, timeRemaining } = getJwtExpiration(token);

// Extract specific claim
const userId = getJwtClaim<string>(token, 'sub');

// Validate structure
if (isValidJwtStructure(token)) {
  // Token is well-formed (doesn't verify signature)
}
```

## Features

- ✅ Colored, readable output
- ✅ Automatic "Bearer " prefix handling
- ✅ Human-readable expiration times
- ✅ Timestamp conversion
- ✅ Pipe support
- ✅ Script-friendly exit codes
- ✅ JSON output mode

---

**Built by [LXGIC Studios](https://lxgicstudios.com)**

🔗 [GitHub](https://github.com/lxgicstudios/jwt-decode) · [Twitter](https://x.com/lxgicstudios)
npm package: @lxgicstudios/jwt-gen
Description: Generate and decode JWT tokens from the command line. Support for HS256 and RS256 with custom claims and expiry. Zero dependencies.
Author: LXGIC Studios
Latest version: 1.0.0

# jwt-gen

[![npm version](https://img.shields.io/npm/v/@lxgicstudios/jwt-gen.svg)](https://www.npmjs.com/package/@lxgicstudios/jwt-gen)
[![license](https://img.shields.io/npm/l/@lxgicstudios/jwt-gen.svg)](https://github.com/lxgicstudios/jwt-gen/blob/main/LICENSE)
[![node](https://img.shields.io/node/v/@lxgicstudios/jwt-gen.svg)](https://nodejs.org)

Generate and decode JWT tokens from the command line. Supports HS256 and RS256 signing, custom claims, and configurable expiry. Zero external dependencies.

## Install

```bash
npm install -g @lxgicstudios/jwt-gen
```

Or run directly:

```bash
npx @lxgicstudios/jwt-gen --secret "my-key" --sub "user123"
```

## Features

- Generate JWT tokens with HS256 or RS256 signing
- Decode and inspect any JWT token
- Verify token signatures
- Custom claims with `--claim key=value`
- Configurable expiry (30m, 1h, 7d, 365d)
- Standard claims support (iss, sub, aud)
- JSON output for scripting
- Zero external dependencies (uses Node's built-in crypto)

## Usage

### Generate a token

```bash
jwt-gen --secret "my-secret-key" --sub "user123" --exp 24h
```

### Add custom claims

```bash
jwt-gen -s "secret" --claim "role=admin" --claim "tier=pro" --claim "active=true"
```

### Generate with RS256

```bash
jwt-gen --algo RS256 --key private.pem --sub "my-service"
```

### Decode a token

```bash
jwt-gen --decode "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
```

### Decode and verify

```bash
jwt-gen --decode "eyJhbG..." --secret "my-secret" --verify
```

## Options

| Option | Alias | Default | Description |
|--------|-------|---------|-------------|
| `--help` | `-h` | | Show help message |
| `--json` | | | Output as JSON |
| `--secret` | `-s` | | HMAC secret key (for HS256) |
| `--key` | `-k` | | Private key file path (for RS256) |
| `--pub` | | | Public key file path (for verification) |
| `--algo` | `-a` | `HS256` | Algorithm: HS256 or RS256 |
| `--exp` | `-e` | `1h` | Expiry duration (30m, 1h, 7d, etc.) |
| `--iss` | | | Issuer claim |
| `--sub` | | | Subject claim |
| `--aud` | | | Audience claim |
| `--claim` | | | Custom claim as key=value (repeatable) |
| `--decode` | `-d` | | Decode a JWT token |
| `--verify` | | | Verify signature when decoding |

## Duration Formats

| Format | Meaning |
|--------|---------|
| `30s` | 30 seconds |
| `30m` | 30 minutes |
| `1h` | 1 hour |
| `24h` | 24 hours |
| `7d` | 7 days |
| `52w` | 52 weeks |

## License

MIT - [LXGIC Studios](https://lxgicstudios.com)
npm package: @lxgicstudios/mockapi
Description: Spin up a mock REST API server from JSON files in seconds. Zero-config CLI tool.
Author: LXGIC Studios
Latest version: 1.0.1

# @lxgicstudios/mockapi

Spin up a mock REST API server from JSON files in seconds.

No config needed. Just run it.

## Installation

```bash
# Use directly with npx (recommended)
npx @lxgicstudios/mockapi db.json

# Or install globally
npm install -g @lxgicstudios/mockapi
```

## Quick Start

```bash
# Create example db.json
npx @lxgicstudios/mockapi --init

# Start the server
npx @lxgicstudios/mockapi db.json
```

## Usage

```bash
# Basic usage
npx @lxgicstudios/mockapi data.json

# Custom port
npx @lxgicstudios/mockapi db.json -p 8080

# Watch for changes
npx @lxgicstudios/mockapi db.json --watch

# Read-only mode
npx @lxgicstudios/mockapi db.json --readonly

# Simulate latency
npx @lxgicstudios/mockapi db.json --delay 500
```

## Data File Format

```json
{
  "users": [
    { "id": 1, "name": "Alice", "email": "alice@example.com" },
    { "id": 2, "name": "Bob", "email": "bob@example.com" }
  ],
  "posts": [
    { "id": 1, "title": "Hello", "body": "Content", "userId": 1 }
  ]
}
```

## Generated Routes

For each resource (e.g., `users`), you get:

| Method | Route | Description |
|--------|-------|-------------|
| GET | `/users` | List all users |
| GET | `/users/:id` | Get user by id |
| POST | `/users` | Create user |
| PUT | `/users/:id` | Replace user |
| PATCH | `/users/:id` | Update user |
| DELETE | `/users/:id` | Delete user |

## Query Parameters

```bash
# Filter
GET /users?name=Alice

# Pagination
GET /users?_page=1&_limit=10

# Sorting
GET /users?_sort=name&_order=asc
```

## Options

| Option | Description |
|--------|-------------|
| `-p, --port <number>` | Port (default: 3001) |
| `-d, --delay <ms>` | Response delay |
| `-w, --watch` | Watch file for changes |
| `-r, --readonly` | Disable mutations |
| `--no-cors` | Disable CORS |
| `--init` | Create example db.json |

## Features

- ✅ Full CRUD operations
- ✅ Automatic ID generation
- ✅ Filtering and pagination
- ✅ Sorting
- ✅ CORS enabled by default
- ✅ Hot reload with `--watch`
- ✅ Zero config
- ✅ Persistent changes to JSON file

## Programmatic API

```typescript
import { createMockServer } from '@lxgicstudios/mockapi';

const server = createMockServer('db.json', {
  port: 3001,
  delay: 100,
  cors: true,
  watch: true,
  readonly: false
});

server.listen();

// Later...
server.close();
```

---

**Built by [LXGIC Studios](https://lxgicstudios.com)**

🔗 [GitHub](https://github.com/lxgicstudios/mockapi) · [Twitter](https://x.com/lxgicstudios)
npm package: @lxgicstudios/port-kill
Description: Kill processes running on a specific port with one command
Author: LXGIC Studios
Latest version: 1.0.0

# @lxgicstudios/port-kill

Kill processes running on a specific port with one command.

No more `lsof | grep | awk | xargs kill`. Just `npx @lxgicstudios/port-kill 3000`.

## Installation

```bash
# Use directly with npx (recommended)
npx @lxgicstudios/port-kill 3000

# Or install globally
npm install -g @lxgicstudios/port-kill
```

## Usage

```bash
# Kill whatever is running on port 3000
npx @lxgicstudios/port-kill 3000

# Force kill (SIGKILL)
npx @lxgicstudios/port-kill 3000 -f

# List processes without killing
npx @lxgicstudios/port-kill 3000 --list

# Check if port is in use
npx @lxgicstudios/port-kill --check 3000

# Find available ports starting from 3000
npx @lxgicstudios/port-kill --find 3000
```

## Options

| Option | Description |
|--------|-------------|
| `-f, --force` | Force kill (SIGKILL on Unix, /F on Windows) |
| `-l, --list` | List processes on port without killing |
| `--check <port>` | Check if a port is in use |
| `--find <port>` | Find available ports starting from port |
| `-h, --help` | Show help |
| `-v, --version` | Show version |

## Programmatic API

```typescript
import { 
  killPort, 
  findProcessesOnPort, 
  isPortInUse, 
  findAvailablePort 
} from '@lxgicstudios/port-kill';

// Kill processes on port
const result = killPort(3000);
console.log(result.success); // true if killed

// Find what's running on a port
const processes = findProcessesOnPort(3000);
processes.forEach(p => console.log(p.pid, p.command));

// Check if port is in use
if (isPortInUse(3000)) {
  console.log('Port 3000 is busy');
}

// Find available ports
const available = findAvailablePort(3000, 5);
console.log('Available ports:', available);
```

## Cross-Platform

Works on:
- ✅ macOS
- ✅ Linux
- ✅ Windows

---

**Built by [LXGIC Studios](https://lxgicstudios.com)**

🔗 [GitHub](https://github.com/lxgicstudios/port-kill) · [Twitter](https://x.com/lxgicstudios)
npm package: @lxgicstudios/seo-audit
Description: SEO audit tool for websites. Check meta tags, headings, images, links, and performance. Generate actionable reports.
Author: LXGIC Studios
Latest version: 1.0.0

# seo-audit

SEO audit tool for websites. Check meta tags, headings, images, links, and more. Generate actionable reports.

## Installation

```bash
npm install -g @lxgicstudios/seo-audit
```

Or use directly:

```bash
npx @lxgicstudios/seo-audit https://example.com
```

## Usage

```bash
# Audit a website
seo-audit https://example.com

# Audit local HTML file
seo-audit index.html

# Audit all HTML files in directory
seo-audit ./pages/

# Export report
seo-audit https://example.com -o report.html
seo-audit https://example.com -f json -o audit.json
```

## What It Checks

### Meta Tags
- Title tag (length 10-70 characters)
- Meta description (length 50-160 characters)
- Keywords, robots directives
- Canonical URL
- Mobile viewport

### Social Tags
- Open Graph (og:title, og:description, og:image)
- Twitter Cards

### Structure
- H1 tag (exactly one recommended)
- Heading hierarchy (no gaps)
- Schema.org structured data

### Images
- Alt text on all images
- Lazy loading attribute

### Links
- Internal links present
- No empty/placeholder links
- External link count

### Content
- Word count (300+ recommended)
- Character encoding
- Language attribute

## Report Formats

```bash
# Text (default)
seo-audit https://example.com

# JSON
seo-audit https://example.com -f json

# Markdown
seo-audit https://example.com -f md

# HTML
seo-audit https://example.com -f html -o report.html
```

## Example Output

```
═══════════════════════════════════════
  SEO AUDIT REPORT
  URL: https://example.com
  Score: 🟢 85/100
═══════════════════════════════════════

❌ ISSUES (2)
───────────────────────────────────────
  ✗ [images] 3 of 12 images missing alt text
  ✗ [social] Missing Twitter Card tags

⚠️  WARNINGS (1)
───────────────────────────────────────
  ⚠ [images] Consider adding lazy loading to images

📊 SUMMARY
───────────────────────────────────────
  Title: Example Website - Home
  Description: Welcome to our example website...
  H1: Welcome to Example
  Images: 12 (9 with alt)
  Links: 15 internal, 3 external
  Word count: 487
```

## Programmatic Usage

```javascript
const { audit, formatReport } = require('@lxgicstudios/seo-audit');

const html = `<!DOCTYPE html>...`;
const results = audit(html, 'https://example.com');

console.log(results.score);
console.log(results.issues);

// Format as markdown
const report = formatReport(results, 'md');
```

## Why seo-audit?

- **Fast** - No browser required
- **Comprehensive** - Checks all essential SEO factors
- **Multiple formats** - JSON, HTML, Markdown reports
- **Batch processing** - Audit entire directories
- **Actionable** - Clear issues and recommendations

---

**Built by [LXGIC Studios](https://lxgicstudios.com)**

🔗 [GitHub](https://github.com/lxgicstudios/seo-audit) · [Twitter](https://x.com/lxgicstudios)
npm package: @lxhfyly/ionic-test
Description: ionic test
Author: lixh
Latest version: 0.0.2

# ionic-test

ionic test

## Install

```bash
npm install ionic-test
npx cap sync
```

## API

<docgen-index>

* [`echo(...)`](#echo)
* [`test(...)`](#test)

</docgen-index>

<docgen-api>
<!--Update the source file JSDoc comments and rerun docgen to update the docs below-->

### echo(...)

```typescript
echo(options: { value: string; }) => Promise<{ value: string; }>
```

| Param         | Type                            |
| ------------- | ------------------------------- |
| **`options`** | <code>{ value: string; }</code> |

**Returns:** <code>Promise&lt;{ value: string; }&gt;</code>

--------------------


### test(...)

```typescript
test(options: { value: string; }) => Promise<{ value: string; }>
```

| Param         | Type                            |
| ------------- | ------------------------------- |
| **`options`** | <code>{ value: string; }</code> |

**Returns:** <code>Promise&lt;{ value: string; }&gt;</code>

--------------------

</docgen-api>