open-index/open-npm huggingface dataset:
npm package: @harshkas45a/commit-gen
Description: AI-powered conventional commit message generator using Google Gemini
Latest version: 1.0.0

# CommitGen

AI-powered conventional commit message generator using Google Gemini (FREE).

## Setup

1. Install:
   ```bash
   npm install -g commit-gen
   ```

2. Get FREE Gemini API key:
   - Visit: https://aistudio.google.com/app/apikey
   - Click "Create API Key"
   - Copy the key

3. Configure:
   ```bash
   commit-gen config
   # Paste your API key when prompted
   ```

4. Use:
   ```bash
   git add .
   commit-gen
   ```

## Features

- AI-powered commit messages using Google Gemini
- Conventional commit format (feat, fix, refactor, etc.)
- Uses FREE Gemini API
- Interactive selection with 3 suggestions
- Beautiful terminal UI with colors and spinners
- Large diff warnings
- Configurable preferences

## Commands

- `commit-gen` - Generate and commit
- `commit-gen config` - Setup/change configuration
- `commit-gen config --show` - View current config
- `commit-gen config --reset` - Reset all configuration
- `commit-gen --help` - Show help
- `commit-gen --version` - Show version

## How It Works

1. Stage your changes with `git add`
2. Run `commit-gen`
3. AI analyzes your diff and suggests 3 commit messages
4. Pick one (1-3), regenerate (r), or quit (q)
5. Auto-commits with your chosen message

## Configuration

Config is stored at `~/.config/commit-gen-nodejs/config.json`:

| Option | Default | Description |
|--------|---------|-------------|
| `apiKey` | - | Gemini API key (required) |
| `preferredTypes` | `[]` (all) | Prioritize certain commit types |
| `maxDiffLines` | `500` | Warn if diff exceeds this |
| `autoCommit` | `true` | Auto-commit or just show message |
| `showExplanations` | `false` | Show reasoning for suggestions |

## License

MIT
npm package: @harshkhandeparkar/calculate-js
Description: A JavaScript library to calculate fractions, trigonometric functions, and others to n-digits and return it as a string.
Author: HarshKhandeparkar
Latest version: 0.0.4

# Calculate JS
A JavaScript library to calculate fractions, trigonometric functions, and others to n-digits and return it as a string.

### Table of Contents
- [Demo](https://harshkhandeparkar.github.io/calculate-js/)
- [Installation And Usage](#installation-and-usage)
- [Library](#library)

### Installation And Usage
Install it via npm/yarn.
`yarn add @harshkhandeparkar/calculate-js` or `npm i @harshkhandeparkar/calculate-js`

All the library functions are exported as non-default exports and can be included with `require` or ES6 syntax.
TS typings are also included ☜(⌒▽⌒)☞

### Library
```js
const { calculateFraction } = require('@harshkhandeparkar/calculate-js');

calculateFraction(45, 46, 15).answer; // '0.978260869565217'
```

This library exports the following functions:
- [Calculate Fraction](#calculate-fraction)

#### Calculate Fraction
`calculateFraction(num, den, numDig) => object`
This function calculates fractions of the form `num/den` to `numDig` digits and returns the answer as a string.

Parameters:
1. `num`: Numerator of the fraction.
2. `den`: Denominator of the fraction.
3. `numDig`: Number of digits to be calculated.

Returns:
It returns an object with the following properties.
```ts
{
  answer: string, // The answer as a string
  recurrence: {
    isRecurring: boolean, // Whether recurrence started in the digits that were calculated
    recurrencePosition: number /** The index (without decimal .) at which the
  recurrence starts. This means that the digits beyond this will start looking similar to the existing digits. This doesn't necessarily mean that the digits before this define the whole sequence.
  Example: 1/3 = 0.333; Here the recurrencePosition is 2 since 3 is the first recurring digit
  (algorithm assumes that 33 is repeating instead of 3)

  Returns -1 if not recurring
  */
  }
}
```