GENEREADME
GENEREADME
is a command-line tool that takes in a file, processes it, and generates a README file with an explanation or documentation of the contents of the file. The tool utilizes OpenAI chat completion to analyze the file and generate content.
Usage
Provide a valid API key either by creating a .env file or through the -a or --api-key flag:
GROQ_API_KEY=API_KEY
or
genereadme -a API_KEY
genereadme --api-key API_KEY
Install the dependencies:
npm install
Run the tool with the existing sample files or start using your own:
genereadme <files>
genereadme examples/sum.js
genereadme examples/createUser.js examples/sum.js
NOTE: The tool accepts any file, but will only provide appropriate generated results for files that have code as content.
Files to be used can be placed anywhere as long as you provide the appropriate path.
Flag options
flag | description | usage |
---|---|---|
-v --version |
Displays the tool's name and the current version. |
genereadme -v genereadme --version |