Skip to main content

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