An open API service indexing awesome lists of open source software.

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.

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]

![snapshot](https://tva1.sinaimg.cn/large/0081Kckwgy1gl071bjiwmj30v80f84qp.jpg)

## 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