# c2m-by-nery

Convert code files to Markdown. Use it as a CLI or as a Python library.

## Requirements

- Python 3.10+

## Install

```bash
pip install c2m-by-nery
```

Or for a global CLI (available system-wide):

```bash
cd /path/to/c2m-by-nery
pipx install .
```

Editable install for local development:

```bash
pip install -e .
```

## Release

### 3. Build the package (local)

From the project directory:

```bash
python -m pip install --upgrade build
python -m build
```

This creates distribution files in `dist/` (a `.tar.gz` and a `.whl`).

### 4. Upload to PyPI with Twine

Install Twine:

```bash
python -m pip install --upgrade twine
```

Upload:

```bash
python -m twine upload dist/*
```

## Usage

```bash
c2m [PATH] [OPTIONS]
```

Examples:

```bash
c2m .
c2m src --frontmatter
```

## Library

```python
from c2m_by_nery.core import convert_to_markdown

result = convert_to_markdown(root=".", frontmatter=True)
```
