Repository

ElizabethSobiya/classify-filename

classify-filename

Sort filenames into named buckets by rules - strings, regex, or predicates. Zero dependencies.

5stars

Open github.com

ElizabethSobiya/classify-filename

classify-filename

Sort filenames into named buckets by rules using strings, regex, or predicates with zero dependencies.

Visit project

Show me a random project

First shared
Jul 14, 2026
HN activity
70

Show HN@ellizabethJul 14, 2026

Show HN: Classify-filename – Sort filenames into buckets by rules

Small zero-dependency npm package I just published. Takes a list of filenames and a list of rules, gives back named buckets - first match wins, natural sort within each bucket, optional explain map for debugging. Wrote it because I couldn't find one on npm. Feedbacks welcome.

Community

Hacker News discussion

Loading the thread…