https://github.com/75lb/renamer-case
Renamer plugin to set the case of a filename.
https://github.com/75lb/renamer-case
plugin renamer
Last synced: 9 months ago
JSON representation
Renamer plugin to set the case of a filename.
- Host: GitHub
- URL: https://github.com/75lb/renamer-case
- Owner: 75lb
- License: mit
- Created: 2018-06-02T17:26:38.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2021-05-18T12:52:15.000Z (about 5 years ago)
- Last Synced: 2025-02-02T08:31:58.316Z (over 1 year ago)
- Topics: plugin, renamer
- Language: JavaScript
- Homepage:
- Size: 78.1 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://www.npmjs.org/package/renamer-case)
[](https://www.npmjs.org/package/renamer-case)
[](https://github.com/75lb/renamer-case/network/dependents?dependent_type=REPOSITORY)
[](https://github.com/75lb/renamer-case/network/dependents?dependent_type=PACKAGE)
[](https://travis-ci.org/75lb/renamer-case)
[](https://coveralls.io/github/75lb/renamer-case)
[](https://github.com/feross/standard)
# renamer-case
[Renamer](https://github.com/75lb/renamer) replace chain plugin to set the case of one or more files and/or directories. See [this tutorial](https://github.com/75lb/renamer/wiki/How-to-use-replace-chain-plugins) to learn how to use renamer plugins.
Possible values: `camel`, `kebab`, `lower`, `upper`, `snake` and `start`. It uses the [lodash](https://lodash.com/docs/4.17.10#camelCase) methods by the same name.
### Install
```
$ npm install -g renamer renamer-case
```
### Use
Example usage. Remove the `--dry-run` option to rename the files on disk.
```
$ tree -N
.
├── One one
└── One two
0 directories, 2 files
$ renamer --chain renamer-case --case camel --dry-run *
✔︎ one one → oneOne
✔︎ one two → oneTwo
Rename complete: 1 of 1 files renamed.
$ tree -N
.
├── oneOne
└── oneTwo
0 directories, 2 files
```
* * *
© 2018-21 Lloyd Brookes <75pound@gmail.com>.