open-index/open-npm huggingface dataset:
npm package: @kood/color-cli
Description: CSS color converter CLI — accurate hex, rgb, oklch conversion with CSS Color Level 4 gamut mapping
Latest version: 0.1.0

# @kood/color-cli

CSS 색상 변환 CLI. hex, rgb, oklch 간 정확한 변환을 제공합니다.

AI가 oklch 변환을 정확하게 하지 못하는 문제를 해결하기 위해, [culori](https://culorijs.org/) 라이브러리(CSS Color Level 4 준수, Tailwind CSS v4 사용)를 핵심 엔진으로 사용합니다.

## 설치

```bash
cd cli && pnpm install && pnpm build
```

글로벌 링크 (선택):

```bash
cd cli/packages/color && pnpm link --global
```

## 사용법

### 단일 색상 변환

색상값을 인자로 전달하면 형식을 자동 감지하여 hex, rgb, oklch 모두 출력합니다.

```bash
color "#ff0000"
color "oklch(0.7 0.25 140)"
color "rgb(255, 0, 0)"
```

출력 예시:

```
HEX:   #ff0000
RGB:   rgb(255, 0, 0)
OKLCH: oklch(0.6280 0.2577 29.23)
```

### 여러 색상 동시 변환

```bash
color "#e63946" "oklch(0.7 0.25 140)" "rgb(0, 128, 255)"
```

### JSON 출력

```bash
color --json "#ff0000"
```

```json
{
  "hex": "#ff0000",
  "rgb": "rgb(255, 0, 0)",
  "oklch": "oklch(0.6280 0.2577 29.23)",
  "originalFormat": "rgb",
  "gamutMapped": false
}
```

### CSS 파일 색상 변환

CSS 파일 내 모든 색상을 지정한 형식으로 일괄 변환합니다.

```bash
# 모든 색상을 oklch로 변환
color css styles.css --to oklch

# hex로 변환
color css styles.css --to hex

# rgb로 변환
color css styles.css --to rgb

# 미리보기만 (파일 수정 안 함)
color css styles.css --to oklch --dry-run
```

출력 예시:

```
styles.css: 12 colors found, 8 converted, 4 skipped

  L3:  #ff0000 → oklch(0.6280 0.2577 29.23)
  L7:  rgb(0, 128, 255) → oklch(0.6171 0.1884 254.42)

Done. File updated.
```

## 지원 형식

| 형식 | 입력 예시 |
|------|----------|
| hex | `#rgb`, `#rrggbb`, `#rrggbbaa` |
| rgb/rgba | `rgb(255, 0, 0)`, `rgba(255, 0, 0, 0.5)` |
| oklch | `oklch(0.7 0.25 140)`, `oklch(0.7 0.25 140 / 0.5)` |
| hsl | `hsl(0, 100%, 50%)` |

culori가 지원하는 모든 CSS 색상 문법을 인식합니다.

## Gamut Mapping

oklch는 sRGB보다 넓은 색공간입니다. sRGB 범위 밖의 oklch 값은 CSS Color Level 4 표준의 chroma-reduction gamut mapping을 적용하여 변환합니다.

- naive clipping (단순 클램핑) 대신 binary-search chroma-reduction 사용
- 밝기(L)와 색상(H)을 보존하고 채도(C)만 줄임

범위 밖 색상이 감지되면 경고를 표시합니다:

```
⚠ Color was outside sRGB gamut — CSS Color Level 4 chroma-reduction applied.
```

## 개발

```bash
# 테스트
cd cli && pnpm test

# 빌드
cd cli && pnpm build

# 로컬 실행
node cli/packages/color/dist/index.js "#ff0000"
```

## 기술 스택

- [culori](https://culorijs.org/) — 색상 변환 엔진 (CSS Color Level 4 준수)
- [tsup](https://tsup.egoist.dev/) — ESM 번들링
- [vitest](https://vitest.dev/) — 테스트
- TypeScript, ESM
npm package: @koodos/capacitor-clipboard
Description: The Clipboard API enables copy and pasting to/from the system clipboard.
Author: Ionic
Latest version: 4.1.2

# @capacitor/clipboard

The Clipboard API enables copy and pasting to/from the system clipboard.

## Install

```bash
npm install @capacitor/clipboard
npx cap sync
```

## Example

```typescript
import { Clipboard } from '@capacitor/clipboard';

const writeToClipboard = async () => {
  await Clipboard.write({
    string: "Hello World!"
  });
};

const checkClipboard = async () => {
  const { type, value } = await Clipboard.read();

  console.log(`Got ${type} from clipboard: ${value}`);
};
```

## API

<docgen-index>

* [`write(...)`](#write)
* [`read()`](#read)
* [Interfaces](#interfaces)

</docgen-index>

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

### write(...)

```typescript
write(options: WriteOptions) => Promise<void>
```

Write a value to the clipboard (the "copy" action)

| Param         | Type                                                  |
| ------------- | ----------------------------------------------------- |
| **`options`** | <code><a href="#writeoptions">WriteOptions</a></code> |

**Since:** 1.0.0

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


### read()

```typescript
read() => Promise<ReadResult>
```

Read a value from the clipboard (the "paste" action)

**Returns:** <code>Promise&lt;<a href="#readresult">ReadResult</a>&gt;</code>

**Since:** 1.0.0

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


### Interfaces


#### WriteOptions

Represents the data to be written to the clipboard.

| Prop         | Type                | Description                                                                                                     | Since |
| ------------ | ------------------- | --------------------------------------------------------------------------------------------------------------- | ----- |
| **`string`** | <code>string</code> | Text value to copy.                                                                                             | 1.0.0 |
| **`image`**  | <code>string</code> | Image in [Data URL](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs) format to copy. | 1.0.0 |
| **`url`**    | <code>string</code> | URL string to copy.                                                                                             | 1.0.0 |
| **`label`**  | <code>string</code> | User visible label to accompany the copied data (Android Only).                                                 | 1.0.0 |


#### ReadResult

Represents the data read from the clipboard.

| Prop        | Type                | Description                    | Since |
| ----------- | ------------------- | ------------------------------ | ----- |
| **`value`** | <code>string</code> | Data read from the clipboard.  | 1.0.0 |
| **`type`**  | <code>string</code> | Type of data in the clipboard. | 1.0.0 |

</docgen-api>
npm package: @koodos/native-screenshot-capacitor
Description: Take a screenshot using Swift
Author: Kirill Noskov
Latest version: 0.0.1

# screenshot-capacitor-plugin

Take a screenshot using Swift

## Install

```bash
npm install screenshot-capacitor-plugin
npx cap sync
```

## API

<docgen-index>

* [`takeScreenshot()`](#takescreenshot)

</docgen-index>

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

### takeScreenshot()

```typescript
takeScreenshot() => Promise<{ screenshot: string; }>
```

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

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

</docgen-api>
npm package: @koodos/share-to-insta-stories
Description: Plugin for sharing images on Instagram Stories
Author: Kirill Noskov
Latest version: 0.0.18

# capacitor-instagram-stories-share

Plugin for sharing images on Instagram Stories

## Install

```bash
npm install capacitor-instagram-stories-share
npx cap sync
```

## API

<docgen-index>

* [`shareToInstagram(...)`](#sharetoinstagram)

</docgen-index>

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

### shareToInstagram(...)

```typescript
shareToInstagram(options: { imageUrl?: string; base64Image?: string; appId: string; topColor?: string; bottomColor?: string; stickerUrl?: string; base64Sticker?: string; }) => any
```

| Param         | Type                                                                                                                                                           |
| ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **`options`** | <code>{ imageUrl?: string; base64Image?: string; appId: string; topColor?: string; bottomColor?: string; stickerUrl?: string; base64Sticker?: string; }</code> |

**Returns:** <code>any</code>

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

</docgen-api>