Skip to content

JS Developer assistant - manipulate over source files - refactor, view, modify objects, arrays, etc. not leaving a terminal

Notifications You must be signed in to change notification settings

akgondber/js-dev-assistant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

js-dev-assistant NPM version

CLI refactor code for JavaScript developers

Install

$ npm install --global js-dev-assistant

CLI

$ js-dev-assistant --help

Manipulate over source files - refactor, view, etc. not leaving a terminal (dev-assistant v2.0.0)

USAGE dev-assistant [OPTIONS] [COMMAND]

ARGUMENTS

  COMMAND    An optional command name (refactor, view...), will be prompted interactively if not provided    

OPTIONS

                                      --root    Root folder to search files on
                                  -f, --file    source file name
                                      --hook    custom hook to perform over changed file
                          -p, --prettierHook    perform prettier format command over changed file 
                     --viewAfterManipulation    Run view file command after manipulation over file

You can provide a command name and file when issuing a command or by choosing from interactive prompts. Filename also can be choosen from interactive prompt, or you can use --file option to specify source file.

Notes:

You can use the following convenient aliases (instead of js-dev-assistant): dev-assistant, devasis, deva, refactorer.

In view mode you can:

  • scroll a content using arrow keys
  • press Ctrl+C or q key in the keyboard in order to exit from program

Tips:

  • to format modified file with prettier you can use --prettier-hook flag
  • to run a custom command after job is performed you can use the --hook flag, (for example, --hook "npm test")

Demo

demo-demo

More examples and tips

License

MIT © Rushan Alyautdinov

About

JS Developer assistant - manipulate over source files - refactor, view, modify objects, arrays, etc. not leaving a terminal

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published