Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more

clank

A simple CLI that runs your C++ code just in time.

Built with Deno.

๐Ÿ‘พ Installation

$ deno install -fAq --name="clank" https://deno.land/x/clank/mod.ts

๐Ÿ”ฅ Usage

# Basic help text:
$ clank

# Run a C++ script:
$ clank hello.cpp

# See juicy debug info:
$ CLANK_DEBUG=1 clank hello.cpp

๐Ÿš€ Features

  • Passthrough stdin, stdout and stderr
  • Prints status code
  • A cache based on unique hashes of files
  • Smart deletion of cached files to keep cache size under 0.5 GB
  • Passing options directly to compilers
  • Looks great

๐Ÿšง Roadmap

  • Config file
  • Smarter deletion algo
  • Options to compiler
  • Configure which compiler to use
  • More tests