@aesonford/renami 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +674 -0
- package/README.md +15 -0
- package/package.json +26 -0
- package/renami.mjs +2738 -0
package/README.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# renami
|
|
2
|
+
|
|
3
|
+
Rename files in bulk from a pattern, from the command line. This is the command-line companion to the [Renami](https://github.com/AesonFord/Renami) desktop app, with the same rename engine.
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
npm install -g @aesonford/renami # needs Node 22 or later
|
|
7
|
+
|
|
8
|
+
renami rename ~/Photos/Hawaii -p 'Hawaii_{date_taken:YYYY-MM-DD}_{seq:3}' # preview
|
|
9
|
+
renami rename ~/Photos/Hawaii -p 'Hawaii_{date_taken:YYYY-MM-DD}_{seq:3}' --apply --journal undo.json # rename
|
|
10
|
+
renami undo undo.json # put it back
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Nothing on disk changes without `--apply`. `renami tokens` lists the pattern tokens, and `renami --help` lists every option and exit code. `renami <paths…>` opens the desktop app with those files, if it is installed.
|
|
14
|
+
|
|
15
|
+
See the [README](https://github.com/AesonFord/Renami#command-line) for settings files, JSON output and exit codes.
|
package/package.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@aesonford/renami",
|
|
3
|
+
"version": "0.2.2",
|
|
4
|
+
"description": "Rename files in bulk from a pattern, from the command line",
|
|
5
|
+
"license": "GPL-3.0-or-later",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"bin": {
|
|
8
|
+
"renami": "renami.mjs"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"renami.mjs",
|
|
12
|
+
"README.md",
|
|
13
|
+
"LICENSE"
|
|
14
|
+
],
|
|
15
|
+
"engines": {
|
|
16
|
+
"node": ">=22"
|
|
17
|
+
},
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/AesonFord/Renami.git"
|
|
21
|
+
},
|
|
22
|
+
"homepage": "https://github.com/AesonFord/Renami#command-line",
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"exiftool-vendored": "^38.2.0"
|
|
25
|
+
}
|
|
26
|
+
}
|