Skip to content

Stexxe/c2k

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

c2k

A tool for converting a curl command to the corresponding Kotlin code with Ktor.

Usage

Just place the c2k command before the curl command. For example:

c2k curl -v --data-raw 'request-body' https://example.com

As a result, the generated code will be printed to stdout.

Install

  1. Go to the GitHub releases page and download the appropriate binary
  2. Make it executable chmod +x c2k-... # Replace with the correct filename
  3. Move it to a PATH directory: sudo mv c2k-... /usr/local/bin/c2k
  4. Verify it works: c2k --version

About

Tool to convert a curl command to Kotlin code with Ktor

Topics

Resources

Stars

Watchers

Forks