https://github.com/afeiship/safe-rename
Rename file or dictionary use cli.
https://github.com/afeiship/safe-rename
cli filename mv rename safe sanitize sfmv
Last synced: 25 days ago
JSON representation
Rename file or dictionary use cli.
- Host: GitHub
- URL: https://github.com/afeiship/safe-rename
- Owner: afeiship
- License: mit
- Created: 2020-11-23T14:19:08.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-09-17T01:50:39.000Z (over 3 years ago)
- Last Synced: 2025-03-10T20:18:22.267Z (about 2 months ago)
- Topics: cli, filename, mv, rename, safe, sanitize, sfmv
- Language: JavaScript
- Homepage:
- Size: 21.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# safe-rename
> Rename file or dictionary use cli.[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]
## installation
```shell
npm install @jswork/safe-rename
```## usage
~~~
Usage: safe-rename [options]Options:
-V, --version output the version number
-p, --pattern glob pattern for gobby('*.doc,*.pdf').
-c, --char replacement char (default is: _). (default: "_")
-s, --strip strip repeat replacement char. (default: true)
-f, --filters Process filename one by one.
-d, --debug only show cmds, but not clean.
-h, --help display help for command
~~~## license
Code released under [the MIT license](https://github.com/afeiship/safe-rename/blob/master/LICENSE.txt).[version-image]: https://img.shields.io/npm/v/@jswork/safe-rename
[version-url]: https://npmjs.org/package/@jswork/safe-rename[license-image]: https://img.shields.io/npm/l/@jswork/safe-rename
[license-url]: https://github.com/afeiship/safe-rename/blob/master/LICENSE.txt[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/safe-rename
[size-url]: https://github.com/afeiship/safe-rename/blob/master/dist/safe-rename.min.js[download-image]: https://img.shields.io/npm/dm/@jswork/safe-rename
[download-url]: https://www.npmjs.com/package/@jswork/safe-rename