open-index/open-npm huggingface dataset:
npm package: @suntory-n-water/cc-spinner
Description: CLI tool to distribute and apply spinnerVerbs themes for Claude Code
Latest version: 0.0.4

# cc-spinner

[日本語](./README.ja.md)

A CLI tool to distribute and apply `spinnerVerbs` themes for Claude Code.

Claude Code supports a `spinnerVerbs` setting in `settings.json` that customizes the text displayed while the AI is processing. **cc-spinner** makes it easy to share and apply these themes.

```bash
npx @suntory-n-water/cc-spinner add frieren
```

## Commands

### `add <theme>` — Apply a theme

```bash
npx @suntory-n-water/cc-spinner add <theme> [options]
```

| Argument | Description |
|----------|-------------|
| `<theme>` | Theme name from the central repository, or `owner/repo` for any GitHub repository |

| Option | Description |
|--------|-------------|
| `-g, --global` | Apply to `~/.claude/settings.json` |
| `-l, --local` | Apply to `.claude/settings.local.json` |
| _(none)_ | Prompts you to choose a scope |

**Example — central repository:**
```bash
npx @suntory-n-water/cc-spinner add frieren
```

**Example — any GitHub repository:**
```bash
npx @suntory-n-water/cc-spinner add Suntory-N-Water/claude-code-changelog-viewer
```

---

### `preview <theme>` — Preview verbs without applying

```bash
npx @suntory-n-water/cc-spinner preview frieren
```

Displays the list of verbs without modifying any `settings.json`.

---

### `list` — List available themes

```bash
npx @suntory-n-water/cc-spinner list
```

---

### `find <query>` — Search themes

```bash
npx @suntory-n-water/cc-spinner find anime
```

Searches across theme names, descriptions, and tags.

## Theme format

Themes are stored as JSON files in the `themes/` directory and must conform to the following schema:

```json
{
  "$schema": "../schema.json",
  "name": "frieren",
  "description": "Quotes from Frieren: Beyond Journey's End",
  "tags": ["anime", "japanese"],
  "mode": "replace",
  "verbs": [
    "Magic is most fun when you're still searching for it.",
    "I see."
  ]
}
```

| Field | Type | Required | Constraints |
|-------|------|----------|-------------|
| `$schema` | string | - | Path to `schema.json` for editor validation |
| `name` | string | ✅ | Lowercase letters, digits, and hyphens only. Must match the filename. |
| `description` | string | - | Any string |
| `tags` | string[] | - | Any strings |
| `mode` | string | ✅ | `"replace"` or `"append"` |
| `verbs` | string[] | ✅ | At least one item |

## Contributing a theme

1. Fork `Suntory-N-Water/cc-spinner`
2. Add `themes/<name>.json` (filename must match the `name` field)
3. Open a pull request
4. After review and merge, your theme becomes available via `npx @suntory-n-water/cc-spinner add <name>`

## References

- [Claude Code settings](https://code.claude.com/docs/en/settings)
- [Claude Code no Spinner Verbs ni Iyasarate Mita](https://dev.classmethod.jp/articles/claude-code-spinner-verbs/)

## Development

```bash
bun install
bun test
bun run build
```
npm package: @suntree/java-enum-transform
Description: Java enum transform to typescript
Author: from 余聪
Latest version: 1.0.6

# java-enum-transform

[![Build status](https://img.shields.io/travis/余聪/java-enum-transform/master.svg?style=flat-square)](https://travis-ci.com/余聪/java-enum-transform)
[![Test coverage](https://img.shields.io/codecov/c/github/余聪/java-enum-transform.svg?style=flat-square)](https://codecov.io/github/余聪/java-enum-transform?branch=master)
[![NPM version](https://img.shields.io/npm/v/java-enum-transform.svg?style=flat-square)](https://www.npmjs.com/package/java-enum-transform)
[![NPM Downloads](https://img.shields.io/npm/dm/java-enum-transform.svg?style=flat-square&maxAge=43200)](https://www.npmjs.com/package/java-enum-transform)
[![Prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://prettier.io/)
[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg?style=flat-square)](https://conventionalcommits.org)

> Java enum transform

### 1.0.4  
- 增加对无参数枚举的识别，
- 调整对单参数枚举的识别，单参数第一个参数为枚举的中文label
- 统一 单参数，双参数，无参数三者的输出形态

- [ ] TODO：单参数识别上一行的注释  // 开头的,  /**  **/


### Input

```java
// User.java
package com.example.foo;

import com.example.foo.Consts;

public class enum User {
  ADMIN(1, "管理员"),
  DEVELOPER(2, "开发人员");
  OWNER(Consts.OWNER, "拥有者");
}
```

```java
// Consts.java
package com.example.foo;

public class Consts {
  public static int OWNER = 3;
}
```

### Output

```typescript
export const enum UserEnum {
  /**
   * 管理员
   */
  ADMIN = 1,
  /**
   * 开发人员
   */
  DEVELOPER = 2,
  /**
   * 拥有者
   */
  OWNER = 3
}
export const UserEnumOptions = [
  { label: '管理员', value: UserEnum['ADMIN'] },
  { label: '开发人员', value: UserEnum['DEVELOPER'] },
  { label: '拥有者', value: UserEnum['OWNER'] }
]
```

## Installation

```bash
npm install java-enum-transform
# or use yarn
yarn add java-enum-transform
```

## Usage

```javascript
import { javaEnumTransformByDir, resultToCode } from 'java-enum-transform'

const enumCode = resultToCode(await javaEnumTransformByDir('path/to/java'))
```

## Contributing

- Fork it!
- Create your new branch:  
  `git checkout -b feature-new` or `git checkout -b fix-which-bug`
- Start your magic work now
- Make sure npm test passes
- Commit your changes:  
  `git commit -am 'feat: some description (close #123)'` or `git commit -am 'fix: some description (fix #123)'`
- Push to the branch: `git push`
- Submit a pull request :)

## Authors

This library is written and maintained by 余聪, <a href="mailto:yucong@yuanfudao.com">yucong@yuanfudao.com</a>.

## License

MIT - [余聪](https://github.com/余聪) 🐟