
carbon-cli is a CLI tool which interacts with the aforementioned Carbon, allowing you to create beautiful images of your source code.
Installation per NPM/Yarn, or run it directly using npx
npm i -g carbon-cli
Usage is quite simple:
carbon -f file.js
Where it creates the image file? And why ‘-f’ if there is no other meaningful task to do, why not go the usual unix way of STDIN (for pipes) or directly mention the filename as a parameter instead?