0.0.0-development • Published 4 years ago

node-cli-toolkit v0.0.0-development

Weekly downloads
3
License
GPL-3.0
Repository
github
Last release
4 years ago

CLI Toolkit

This is a collection of tools to make working with Node CLIs easier

Tools

ToolDescriptionStatus
oauth-cliA Node utility that opens the Oauth URL, starts an express server which listens for the redirect when the user logs in. the Redirect Server makes a request to the tokenUrl and returns back the token in the response. It resolves the promise of the OAuthCLI with the tokenWorking
generate-oauth-token-cliGenerates an oauth token using the CLI and saves it to a file.Working
exec-bash-commandThis is a utility that should run any bash command or CLI. It supports sending inputs to the command, checks for exit codes, and allows to check the stdout and stderr easily with a promise interface. It also allows to run node scripts easily (that are meant to be run as CLIs)Working
test-cliThis is a generic utility that should be able to test any CLI. It's meant to be used in the context of Jest as it exports mock functions that fire when there's data on stdout or stderrWorking
send-inputs-to-cliThis is a generic utility that should be able to send inputs to any CLI/process executed by child_process.exec. It's meant to be used in the context of Jest as it exports mock functions that fire when there's data on stdout or stderr. It is also mean to be used in conjunction with @node-cli-toolkit/test-cliWorking
save-tokenA small utility to write your tokens to the file system to easily retrieve laterWorking
__templateA boilerplate to copy to create more packagesWorking