1.0.2 • Published 1 year ago
namemyvar v1.0.2
namemyvar
NameMyVar is an NPM package for naming variables using artificial intelligence.
Installation
You can install NameMyVar globally using npm:
npm install -g namemyvar
afterwords you will need to set your OpenAI API key as an environment variable. (Retrieve your API key from OpenAI)
Set OpenAPI key
Windows
SET OPENAI_KEY=your_key
Mac
EXPORT OPENAI_KEY=your_key
Usage
namemyvar <code-description> [options]
Options
--type, -t
: The type of the variable, such as boolean, function, number, etc.--context, -c
: The context in which the variable name is going to be used.
Examples
namemyvar check if reached limit of comments per day -t boolean -c javascript
Generating name ...
▪ maxCommentsPerDay