https://github.com/glpecile/srt-cli
Basic text to .srt file cli.
https://github.com/glpecile/srt-cli
bun cli str
Last synced: about 1 month ago
JSON representation
Basic text to .srt file cli.
- Host: GitHub
- URL: https://github.com/glpecile/srt-cli
- Owner: glpecile
- License: mit
- Created: 2024-10-13T18:27:55.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-05T23:35:45.000Z (over 1 year ago)
- Last Synced: 2025-12-26T16:44:31.345Z (5 months ago)
- Topics: bun, cli, str
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/srt-cli
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# srt-cli
A small Command Line Input (CLI) that takes a text file and converts it into a `.srt` file.
## Why?
While watching re:zero season 3 I noticed the re:zero break time season 3 was airing simultaneously.
I wanted to watch the break time episodes with subtitles but couldn't find any.
That is until I saw a commentor by the name of [@KakoeiSbi](https://www.youtube.com/@KakoeiSbi) who translated the break time episodes in a specific format.
I decided then to create a CLI that would take the text and convert it into a `.srt` file and then download the video from youtube with the subtitles.
## Run script from npm
```sh
npx srt-cli
```
Then follow the CLI steps.
The text entered should follow the format:
```sh
(mm:ss) : “” # mm:ss : “” also works
```
## Run Locally
To install dependencies:
```bash
bun install
```
To run:
```bash
bun run src/index.ts
```
This project was created using `bun init` in bun v1.1.30. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime.