multitool for file operation
Find a file
2025-02-17 22:59:29 +09:00
src resize function 2025-02-17 22:59:29 +09:00
.gitignore 環境設定ファイル 2025-02-15 23:59:33 +09:00
.npmignore 環境設定ファイル 2025-02-17 22:49:54 +09:00
eslint.config.mjs 環境設定ファイル 2025-02-17 22:49:54 +09:00
package-lock.json compress function 2025-02-17 22:58:45 +09:00
package.json 環境設定ファイル 2025-02-17 22:49:54 +09:00
README.md main files 2025-02-17 22:53:25 +09:00
tsconfig.json 環境設定ファイル 2025-02-17 22:49:54 +09:00

mtt(multitool)

A multi-tool that performs various operations on files within a directory. Currently, it supports the following features.

Usage

npm insatll -g @riq0h/mtt

mtt -r

Bulk renames filenames within a directory. When launched, $EDITOR is called, allowing you to flexibly edit with any editor.

mtt -c

Compresses individual files within a directory. If no filenames are specified, all files will be targeted.

mtt -i <files...> -p <value>

Resizes image files (.jpg, .jpeg, .png, .gif, .webp) within a directory. The -p option is required to specify the resize ratio.