nbir-1.1.0 is not a library.
NBIR — Numeric Bulk Image Renamer
Rename image files in a directory to a sequential numbered scheme (e.g. base01.jpg, base02.png).
Installation
From crates.io:
From source:
Usage
Interactive mode (no arguments): Run nbir with no args. It will ask “Do you want to run it in the current directory? (y/n)” and, if yes, “Enter base name (e.g., spacewallpaper)”. Then it shows a preview and asks to proceed—like the original Python script.
CLI mode: Pass --base-name (and optionally -d, -y):
Options
| Short | Long | Default | Description |
|---|---|---|---|
-b |
--base-name |
— | Base name for renamed files. If omitted, runs interactively and prompts for it. |
-d |
--directory |
. |
Directory containing images |
-y |
--yes |
false |
Skip confirmation; rename immediately |
Examples
Interactive (prompts for directory and base name):
Preview renames in the current directory (will ask for confirmation):
Rename immediately without prompting:
Target a specific folder:
Supported formats
.jpg, .jpeg, .png, .gif, .webp, .bmp, .tiff, .tif (case-insensitive)