Skip to content

Destroy all folders that fill space, like node_modules, bin, obj or what you prefer! Or just rename folder and sub-dir/files after copy/paste

Notifications You must be signed in to change notification settings

morganpizzini/chararos

Repository files navigation

Chararos

oclif Version Downloads/week License

Description

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.

Install

$ npm i -g chararos

Usage

$ 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
...

Commands

chararos clean DIRECTORY

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

chararos help [COMMAND]

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

chararos rename DIRECTORY FROMNAME TONAME

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

Contributing

Feel free to add new feature and enhancement

About

Destroy all folders that fill space, like node_modules, bin, obj or what you prefer! Or just rename folder and sub-dir/files after copy/paste

Resources

Stars

Watchers

Forks

Packages

No packages published