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
carbon-cli
– Carbon, from the CLI →
Published by Bramus!
Bramus is a frontend web developer from Belgium, working as a Chrome Developer Relations Engineer at Google. From the moment he discovered view-source at the age of 14 (way back in 1997), he fell in love with the web and has been tinkering with it ever since (more …)
View more posts
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?