Package Exports
- terminalizer
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (terminalizer) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Terminalizer
Record your terminal and generate animated gif images

Built to be jusT cOol 👌🦄 !
If you think so, support me by a
starand afollow😘
Built while listening to Ever Felt Pt.1 - Otis McDonald 🎵 And Nyan Cat 😛
Table of Contents
Features
- Highly customizable.
- Corss platform (Linux, Windows, MacOS).
- Custom
window frames. - Custom
font. - Custom
colors. - Custom
styleswithCSS. - Watermark.
- Edit frames and adjust delays before rendering.
- Skipping frames by a step value to reduce the number of rendered frames.
- Render images with texts on them instead of capturing your screen for better quality.
- The ability to configure:
- The command to capture (bash, powershell.exe, yourOwnCommand, etc)
- The current working directory.
- Explicit values for the number of cols and rows.
- GIF quality and repeating.
- Frames delays.
- The max idle time between frames.
- cursor style.
- font.
- font size.
- line height.
- letter spacing.
- theme.
Installation
You need first to install Node.js, then install the tool globally using this command:
npm install -g terminalizer
Getting Started
Start recording your terminal using the command record.
terminalizer record demoA file called demo.yml will be created in the current directory. You can open it using any editor to edit the configurations and the recoreded frames. You can replay your recording using the command play.
terminalizer play demoNow let's render our recording as an animated gif.
terminalizer render demoCompression
GIF compression is not implementated yet. For now we recommend https://gifcompressor.com.
Usage
You can use the option
--helpto get more details about the commands and their options.
terminalizer <command> [options]Config
Generate a config file in the current directory
terminalizer configRecord
Record your terminal and create a recording file
terminalizer record <recordingFile>Options
-c, --config Overwrite the default configurations [string]
-d, --command The command to be executed [string] [default: null]Examples
terminalizer record foo Start recording and create a recording file called foo.yml
terminalizer record foo --config config.yml Start recording with with your own configurationsPlay
Play a recording file on your terminal
terminalizer play <recordingFile>Options
-r, --real-timing Use the actual delays between frames as recorded [boolean] [default: false]
-s, --speed-factor Speed factor, multiply the frames delays by this factor [number] [default: 1]Render
Render a recording file as an animated gif image
terminalizer render <recordingFile>Options
-o, --output A name for the output file [string]
-q, --quality The quality of the rendered image (1 - 100) [number]
-s, --step To reduce the number of rendered frames (step > 1) [number] [default: 1]Share
Upload a recording file and get a link for an online player
terminalizer share <recordingFile>Generate
Generate a web player for a recording file
terminalizer generate <recordingFile>Configurations
The default config.yml file is stored at root directory of the project. Execute the bellow command to copy it to your current directory.
Use any editor to edit the copied
config.yml, then use the option-cto overwrite the default one.
terminalizer configRecording
command: Specify a command to be executed like/bin/bash -l,ls, or any other commands. The default isbashforLinuxorpowershell.exeforWindows.cwd: Specify the current working directory path. The default is the current working directory path.env: Export additional ENV variables, to be read by your scripts when start recording.cols: Explicitly set the number of columns or useautoto take the current number of columns of your shell.rows: Explicitly set the number of rows or useautoto take the current number of columns of your shell.
Delays
frameDelay: The delay between frames in ms. If the value isautouse the actual recording delays.maxIdleTime: Maximum delay between frames in ms. Ignored if theframeDelayisn't set toauto. Set toautoto prevnt limiting the max idle time.
GIF
quality: The quality of the generated GIF image (1 - 100).repeat: Amount of times to repeat GIF:- If value is
-1, play once. - If value is
0, loop indefinitely. - If value is
apositive number, loop n times.
- If value is
Terminal
cursorStyle: Cursor style can be one ofblock,underline, orbar.fontFamily: You can use any font that is installed on your machine likeMonacoorLucida Console.fontSize: The size of the font in pixels.lineHeight: The height of lines in pixels.letterSpacing: The spacing between letters in pixels.
Theme
You can set the colors of your terminal using one of the CSS formats:
- Hex:
#FFFFFF. - RGB:
rgb(255, 255, 255). - HSL:
hsl(0, 0%, 100%). - Name: 'white', 'red', 'blue',
You can use the the value
transparenttoo.
The default colors that are assigned to the termianl colors are:
- background:
transparent - foreground:
#afafaf - cursor:
#c7c7c7 - black:
#232628 - red:
#fc4384 - green:
#b3e33b - yellow:
#ffa727 - blue:
#75dff2 - magenta:
#ae89fe - cyan:
#708387 - white:
#d5d5d0 - brightBlack:
#626566 - brightRed:
#ff7fac - brightGreen:
#c8ed71 - brightYellow:
#ebdf86 - brightBlue:
#75dff2 - brightMagenta:
#ae89fe - brightCyan:
#b1c6ca - brightWhite:
#f9f9f4
Watermark
You can add a watermark logo to your generated GIF images.

watermark:
imagePath: AbsolutePathOrURL
style:
position: absolute
right: 15px
bottom: 15px
width: 100px
opacity: 0.9watermark.imagePath: An absolute path for the image on your machine or a url.watermark.style: Apply CSS styles (camelCase) to the watermark image, like resizing it.
Frame Box
Terminalizer comes with predefined frames that you can use to make your GIF images look cool.
frameBox.type: Can benull,window,floating, orsolid.frameBox.title: To display a title for the frame ornull.frameBox.style: To apply custom CSS styles or to overwrite the current onces.
Null Frame
No frame, just your recording.

Don't forget to add a
backgroundColorunderstyle.
frameBox:
type: null
title: null
style:
backgroundColor: blackWindow Frame

frameBox:
type: window
title: Terminalizer
style: []Floating Frame

frameBox:
type: floating
title: Terminalizer
style: []Solid Frame

frameBox:
type: solid
title: Terminalizer
style: []Solid Frame Without Title

frameBox:
type: solid
title: null
style: []Styling Hint
You can disable the default shadows and margins by:

frameBox:
type: solid
title: null
style:
boxShadow: none
margin: 0pxLicense
This project is under the MIT license.