This repo contains a small typescript app using Deno to scan for audio files below a given bitrate.
- Install deno.
- Execute the script by specifying the
path,bitratelimitandloglevel.
# this is an example:
deno run --allow-read --allow-env main.ts --path /music/ --bitratelimit 128 --loglevel INFODeno allows to compile projects to binaries. Use deno compile in order to do so.
mkdir -p bin/
deno compile --allow-read --allow-env --output bin/audio-scanner main.tsAll flags have defaults and are optional.
Bitratelimit must be of type number. The scanner will detect files that are below the given bitrate.
Alias: -b
Default: 320
Help is of type boolean. The scanner will print usage info to the console.
Path must be of type string pointing to an existing directory.
Alias: -p
Default: '.'
Log level must be of type string. Available log levels are ERROR, INFO and DEBUG. Log levels are case-sensitive.
Alias: -l
Default: 'INFO'