JSPM

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

Command line tool using ChatGPT

Package Exports

    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 (gpt-console) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    ChatGPT CONSOLE

    This is a command line tool that utilizes OpenAI's GPT-4 model to provide text-based interactions.

    Installation

    yarn global add gpt-console
    or 
    npm i gpt-console -g
    

    Usage

    To run the tool, execute the following command in the root directory or the working directory where you want to use the files

    gpt-console

    You will then be presented with a prompt, where you can type your queries and receive responses.

    Commands

    The following commands are available:

    • generate-testcases <filename.extension> functionname1 functionname2: generates test cases for specified functions in the given file.
    • generate-doc <filename.extension> functionname1 functionname2: generates documentation for specified functions in the given file.
    • codereview <filename.extension>: provides code review suggestions for the given file.

    Multi-line Commands

    To enter 'editor mode', type .editor and press enter. You can then enter multi-line code or text. When you're done, press Ctrl + D to exit editor mode, and the ChatGPT response will be printed in the console.

    For all other commands or text, the ChatGPT response will be printed in the console.

    Examples

    Generate Test Cases

    generate-testcases index.js fibonacci factorial

    Generate Documentation

    generate-doc index.js fibonacci factorial

    Code Review

    codereview index.js

    Multi-line Command

    .editor
    Here's some code I'm working on:
    
    function add(a, b) {
      return a + b;
    }
    
    What do you think?
    ^D

    Roadmap

    We are working on below, if you need more send us email

    • create a long running agent that does complex tasks
    • use combination of system commands and current repository to get some actual work done
    • automatse some soul sucking daily works that boss wanted us to do, for example write a shitty document that is useless