Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/glpecile/srt-cli
Basic text to .srt file cli.
https://github.com/glpecile/srt-cli
bun cli str
Last synced: about 2 months 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 (3 months ago)
- Default Branch: main
- Last Pushed: 2024-10-14T13:55:44.000Z (3 months ago)
- Last Synced: 2024-11-15T23:43:30.299Z (about 2 months ago)
- Topics: bun, cli, str
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/srt-cli
- Size: 16.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:
```xml
(mm:ss) : “”
```## Run Locally
To install dependencies:
```bash
bun install
```To run:
```bash
bun run 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.