Usefull CLI commands for handle standard projects issues, like remove unecessary files or duplicate/rename files and folders
With Chararos you can:
- Destroy all folders that fill space.
- Select a target directory and remove all projects temporary files, like node_modules, bin or obj directory. Or choose your own directory to delete
- Rename all occurence of string, in directory or file name, from provided path
- Select a target directory, a name and his replace.
$ npm i -g chararos
$ chararos clean <directory> <opts>
$ chararos rename <directory> <opts>
---
or
---
$ npx chararos <directory> <opts>
$ npm install -g chararos
$ chararos COMMAND
running command...
$ chararos (-v|--version|version)
chararos/1.0.7 win32-x64 node-v10.16.0
$ chararos --help [COMMAND]
USAGE
$ chararos COMMAND
...
clean folder from unnecessary files
USAGE
$ chararos clean DIRECTORY
ARGUMENTS
DIRECTORY directory
OPTIONS
-d, --dryrun make a dry run
-f, --folder=folder custom target folder to delete
-h, --help show CLI help
-n, --node cleanup node projects
-v, --vs cleanup vs projects
--version show CLI version
EXAMPLE
$ chararos clean '%YOUR-PATH%' -v
removing visual studio files
See code: src\commands\clean.ts
display help for chararos
USAGE
$ chararos help [COMMAND]
ARGUMENTS
COMMAND command to show help for
OPTIONS
--all see all commands in CLI
See code: @oclif/plugin-help
rename folders name
USAGE
$ chararos rename DIRECTORY FROMNAME TONAME
ARGUMENTS
DIRECTORY directory
FROMNAME from name
TONAME to name
OPTIONS
-d, --dryrun make a dry run
-h, --help show CLI help
-s, --strict strict search
--version show CLI version
EXAMPLE
$ chararos rename '%YOUR-PATH%' "x" "y"
rename folders from 'x' to 'y'
See code: src\commands\rename.ts
Feel free to add new feature and enhancement