Developer Codec

Curl to Code Converter

APIリクエストで用いる `curl` コマンドを入力するだけで、JavaScript, Python, Goなどのコードに安全にローカルで相互変換します。

サンプルを読み込む:

Curl コマンド入力

fetch('https://api.github.com/repos/handism/handism.github.io/issues', { method: 'POST', headers: { 'Accept': 'application/vnd.github+json', 'Authorization': 'Bearer YOUR_GITHUB_TOKEN' },, body: JSON.stringify({ "title": "Bug report", "body": "This is a test issue." }) }) .then(response => response.json()) .then(data => console.log(data)) .catch(error => console.error('Error:', error));
インプットの解析およびコード生成は完全にブラウザのメモリ内で行われます。