https://github.com/mac641/audio-scanner
This repo contains a small typescript app using Deno to scan for audio files below a given bitrate.
https://github.com/mac641/audio-scanner
audio cli deno typescript
Last synced: about 1 month ago
JSON representation
This repo contains a small typescript app using Deno to scan for audio files below a given bitrate.
- Host: GitHub
- URL: https://github.com/mac641/audio-scanner
- Owner: mac641
- License: mit
- Created: 2025-05-03T09:42:47.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-19T22:50:29.000Z (about 1 year ago)
- Last Synced: 2025-07-01T17:07:28.438Z (12 months ago)
- Topics: audio, cli, deno, typescript
- Language: TypeScript
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# audio-scanner
This repo contains a small typescript app using [Deno](https://deno.com/) to scan for audio files below a given bitrate.
## Getting started
1. [Install deno](https://docs.deno.com/runtime/getting_started/installation/).
2. Execute the script by specifying the `path`, `bitratelimit` and `loglevel`.
```bash
# this is an example:
deno run --allow-read --allow-env main.ts --path /music/ --bitratelimit 128 --loglevel INFO
```
## Compile to binary
_Deno_ allows to compile projects to binaries. Use `deno compile` in order to do so.
```bash
mkdir -p bin/
deno compile --allow-read --allow-env --output bin/audio-scanner main.ts
```
## Configuration
All flags have defaults and are optional.
### `--bitratelimit`
Bitratelimit must be of type `number`. The scanner will detect files that are below the given bitrate.
**Alias**: `-b`
**Default**: `320`
### `--help`
Help is of type boolean. The scanner will print usage info to the console.
### `--path`
Path must be of type `string` pointing to an existing directory.
**Alias**: `-p`
**Default**: `'.'`
### `--loglevel`
Log level must be of type `string`. Available log levels are `ERROR`, `INFO` and `DEBUG`. Log levels are case-sensitive.
**Alias**: `-l`
**Default**: `'INFO'`