open-index/open-npm huggingface dataset:
npm package: @lipengzhou/upload-image-cli
Description: A command line tool for uploading images to the GitHub repository
Author: lpzmail@163.com
Latest version: 0.0.3

# Upload Image CLI

Upload local images to GitHub repo and get CDN links.

## Features

- Auto compress images (scale down when density >= 100)
- Convert to specified format (default `webp`, quality `80`)
- Upload to GitHub via Contents API
- Output jsDelivr CDN links
- Support upload from clipboard (cross-platform: macOS/Windows/Linux)

## Install

```bash
npm i -g @lipengzhou/upload-image-cli
```

## Config

Config file: `~/.upload-image-cli.json`

```bash
upload-image init
```

Config example:

```json
{
  "hosts": {
    "github": {
      "username": "your-github-name",
      "repo": "your-repo",
      "branch": "master",
      "token": "ghp_xxx"
    }
  }
}
```

**Token permissions:**
- Fine-grained: `Contents: Read and write`
- Classic: `repo` (or `public_repo` for public repos)

**Note:**
- Repo should be public for jsDelivr access
- Upload path: `image/YYYYMMDDHHmmssSSS.<format>`

## Usage

```bash
# View help
upload-image --help

# Upload from clipboard
upload-image

# Upload images
upload-image --files ./a.png ./b.jpg

# Specify output format (default: webp)
upload-image --files ./a.png -f jpeg

# Upload from clipboard with markdown output
upload-image -o markdown
```

**Options:**

- `--files <files...>` - Image file paths (if not specified, read from clipboard)
- `-f, --format <format>` - Image format (default: `webp`, supports `webp`/`jpeg`/`png`/`avif`)
- `-o, --output <format>` - Output format: `markdown`|`html`|`url`|`raw` (default: `raw`)

**Output examples:**

```bash
# raw (default)
upload success:
https://cdn.jsdelivr.net/gh/your-name/your-repo@master/image/...

# markdown
![image](https://cdn.jsdelivr.net/gh/your-name/your-repo@master/image/...)

# html
<img src="https://cdn.jsdelivr.net/gh/your-name/your-repo@master/image/..." alt="image">

# url
https://cdn.jsdelivr.net/gh/your-name/your-repo@master/image/...
```

## FAQ

- **Config file error** → Run `upload-image init`
- **401/403** → Check token permissions
- **404** → Check username/repo/branch config
- **URL not accessible** → Wait for jsDelivr sync (usually < 1min)
npm package: @lipex360-ui/eslint-config
Description: ESLint configuration
Latest version: 1.0.12

Usage

* Package Install
> yarn add -D eslint @lipex360-ui/eslint-config

<br />

* package.json

```json
"scripts": {
  "lint": "npx eslint src --ext .ts,.tsx --fix"
},

"eslintConfig": {
  "extends": [
    "@lipex360-ui/eslint-config"
  ]
}
```