All Posts programming create beautiful images of code | carbon-now cheat-sheet

create beautiful images of code | carbon-now cheat-sheet

ยท 189 words ยท 1 minute read

What is carbon-now ? ๐Ÿ”—

carbon-now is a tool written mostly in Typescript. Its job is to create beautiful images of code.

Common command usage ๐Ÿ”—

Create an image from a file using default settings:

carbon-now path/to/file

Create an image from a text in clipboard using default settings:

carbon-now --from-clipboard

Create an image from stdin using default settings and copy to the clipboard:

input | carbon-now --to-clipboard

Create images interactively for custom settings and optionally save a preset:

carbon-now [-i|--interactive] path/to/file

Create images from a previously saved preset:

carbon-now [-p|--preset] preset path/to/file

Start at a specified line of text:

carbon-now [-s|--start] line path/to/file

End at a specific line of text:

carbon-now [-e|--end] line path/to/file

Open image in a browser instead of saving:

carbon-now --open path/to/file

For more information, checkout the official GitHub repo: https://github.com/mixn/carbon-now-cli .

I hope you enjoyed reading this post as much as I enjoyed writing it. If you know a person who can benefit from this information, send them a link of this post. If you want to get notified about new posts, follow me on YouTube , Twitter (x) , LinkedIn , and GitHub .