Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/blopa/code-video-creator


https://github.com/blopa/code-video-creator

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# Create a video of a code file

Create a video file showing line by line of a code file or React component.

![ScreenShot](https://raw.githubusercontent.com/blopa/code-video-creator/main/examples/image.png)

I have no idea why I made this... but there you go.

## How to use
Run
```shell
npm install code-video-creator
code-video-creator test.js
```
Where "test.js" should be the path to your file. A file called "output.mp4" will be created in the folder you called the script from.

## Options
```shell
npm run code-video-creator test.js --smallTabs true --blinkTextBar true --typingSpeed 1 --lineSpeed 1 --scale 4 --showFileName false
```

## Development
Run
```shell
npm install
```

To install dependencies, then run

```shell
npm run generate test.js
```

Where "test.js" should be the path to your file.

## Languages
Add your language and extensions to the file `languages.json` so they can be automatically detected by this script, as long as the language is supported by [Prism.js](https://prismjs.com/).

## Disclaimer
This is 100% NOT production ready and the code is not optimized at all.

Maybe I will make it better in the future ¯\\\_(ツ)_/¯

You need to have `ffmpeg` installed for this to work!