https://github.com/akgondber/change-case-clipboardy-cli
Change case for specified string and copy the result to clipboard with console ui
https://github.com/akgondber/change-case-clipboardy-cli
Last synced: 3 months ago
JSON representation
Change case for specified string and copy the result to clipboard with console ui
- Host: GitHub
- URL: https://github.com/akgondber/change-case-clipboardy-cli
- Owner: akgondber
- Created: 2023-06-12T10:53:11.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-12T22:25:09.000Z (almost 2 years ago)
- Last Synced: 2025-01-05T23:43:02.935Z (5 months ago)
- Language: JavaScript
- Size: 2.4 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# change-case-clipboardy-cli [![NPM version][npm-image]][npm-url]
> This readme is automatically generated by [create-ink-app](https://github.com/vadimdemedes/create-ink-app)
## Install
```bash
$ npm install --global change-case-clipboardy-cli
```## Usage

Execute
```
$ change-case-clipboardy-cli
```or
```
$ cccc
```or
```
$ ccc
```The ui will be loaded where you can type a source and apply the appropriate change case method.
You can also provide a source and a method (default is camelCase) when running a command:
```
$ ccc --str my_bar_baz --method constantCase
```or using short flags
```
$ ccc -s my_bar_baz -m constantCase
```In order to do a single transformation you can run a program without running ui, by using the `--exit` (`-e`) flag. The program will show transformed string into the console and copy it to clipboard.
```
$ ccc --str my_bar_baz --method constantCase --exit
```or
```
$ ccc -s my_bar_baz -m constantCase -e
``````
$ change-case-clipboardy-cli --helpUsage
$ change-case-clipboardy-cliOptions
--str Source string
--method Method to be used in change-case
--exit Exit immediately after showing a result and copying it to clipboard (without running ui)Examples
$ change-case-clipboardy-cli --str=my_baz --method constantCase
$ change-case-clipboardy-cli -s=my_baz -m constantCase
$ change-case-clipboardy-cli --str=my_header --method capitalCase --exit
```## License
MIT © [Rushan Alyautdinov](https://github.com/akgondber)
[npm-image]: https://img.shields.io/npm/v/change-case-clipboardy-cli.svg?style=flat
[npm-url]: https://npmjs.org/package/change-case-clipboardy-cli
```