JSPM

js-dev-assistant

3.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5
  • Score
    100M100P100Q25468F
  • License MIT

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

Package Exports

  • js-dev-assistant
  • js-dev-assistant/src/cli.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (js-dev-assistant) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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