clean-filename-cli
v1.1.3
Published
Cleanup filenames
Downloads
5
Readme
CleanFileName
This is a node.js command line utility that cleanup filenames with url encode characters.
Installation
$ npm install -g clean-filename-cli
Usage
without option:
$ clean-filename
prompt: filename:
use option --clipboard
or -c
to use clipboard content
$ clean-filename -c
The output will be display in the console and also add to the clipboard
use option --filename
to rename with filesystem
$ clean-filename -f <filename>
The output will be display in the console and also rename in the filesystem
Use with automator (MacOSX)
- Install clean-filename with npm (see above)
- Create new automator service
- Select "Services receives selected files and folders" in "Finder"
- Add a new action "Get Selected Finder Items"
- Add a new action "Run Shell Script"
- In the "pass input" selector choose "as arguments"
- In the textarea, just write the command line $ clean-filename -f "$@"
- Now you can clean up your filename in the finder with right select -> services
Development
First clone repository and access the new folder
$ git clone <repository>
$ cd <folder>
then install necessary modules
$ npm install
and just run with the name to clean in argument
$ ./app.js <filename>
Run the test with
$ npm test