An open API service indexing awesome lists of open source software.

https://github.com/harborclient/plugin-curl

Adds a tab to the request editor that shows an equivalent `curl` command for the configured request and provides a copy button.
https://github.com/harborclient/plugin-curl

Last synced: 9 days ago
JSON representation

Adds a tab to the request editor that shows an equivalent `curl` command for the configured request and provides a copy button.

Awesome Lists containing this project

README

          

# HarborClient cURL Plugin

Adds a **cURL** tab to the request editor that shows an equivalent `curl` command for the configured request and provides a copy button.

## Install

Build the plugin, then install the `.hcp` package or load the project folder unpacked:

```bash
pnpm install
pnpm build
```

In HarborClient: **Settings → Plugins → Load unpacked…** and select this directory.

## Development

```bash
pnpm dev
```

Rebuilds `dist/renderer.js` on change when HarborClient file watching is enabled for unpacked plugins.

## Limitations

| Aspect | Behavior |
| ---------------- | ------------------------------------------------------------------------- |
| Variables | Resolved from collection + active environment (environment wins on dupes) |
| Cookie jar | Not included unless a `Cookie` header is set manually |
| Pre/post scripts | Do not affect displayed cURL |
| Multipart files | Uses stored file paths (`@/path`) on the local machine |

## License

MIT