open-index/open-npm huggingface dataset:
npm package: @harpertoken/autofix-cli
Description: CLI for Harper Autofix - AI-powered text completion editor
Author: harpertoken
Latest version: 1.0.0

# Harper Autofix CLI

CLI for AI-powered text completion.

## Installation

From the project root:

```bash
npm install
cd apps/cli
npm install
npm run build
```

## Setup

1. Get Gemini API key from [Google AI Studio](https://makersuite.google.com/app/apikey)
2. Create `.env` file in the monorepo root (parent of apps/ folder):
   ```
   GEMINI_API_KEY=your_api_key_here
   ```

## Usage

### Create a new document

```bash
autofix new
```

Options:

- `-m, --mode <mode>`: Completion mode (word, sentence, paragraph) - default: sentence
- `-s, --style <style>`: Writing style (casual, formal, creative, technical) - default: casual
- `-o, --output <file>`: Output file path

### Edit an existing file

````bash
harper-autofix edit my-document.txt

## Interactive Commands

- Type text + Enter for suggestions
- `.help` - Show commands
- `.save` - Save text
- `.exit` - Save and exit
- `Ctrl+C` - Save and exit

## Examples

```bash
# Start writing with default settings
autofix new

# Write technical documentation
autofix new --mode paragraph --style technical --output docs.txt

# Edit an existing file
harper-autofix edit story.txt --style creative
````

## Requirements

- Node.js 16+
- Gemini API key

## License

MIT
npm package: @harpertoken/cross-platform-path-utils
Description: TypeScript utilities for cross-platform path handling and secure file operations
Author: Niladri Das
Latest version: 0.1.0
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# cross-platform-path-utils

Reliable path handling for Node.js, consistent across platforms.

## Install

```bash
npm install @harpertoken/cross-platform-path-utils
```

## Usage

```typescript
import {
  createPath,
  safeReadFile,
} from "@harpertoken/cross-platform-path-utils";

const path = createPath("dir", "file.txt");
const data = await safeReadFile(path, ["/allowed"]);
```

## API

- `createPath(...parts): string` - Joins path segments safely
- `safeReadFile(path, allowedDirs): Promise<string>` - Reads files within allowed directories
- `isPathInDirectory(path, dir): boolean` - Checks if path is within directory
- `resolveFromFile(fromFile, toPath): string` - Resolves relative paths

## Development

Clone, install dependencies with `npm install`, test with `npm test`, build with `npm run build`.

Use path utilities over string concatenation, normalize paths, validate inputs, handle line endings, and test cross-platform.

## Conventional Commits

Enforces standards for commit messages.

### Setup

```bash
cp scripts/commit-msg .git/hooks/commit-msg
chmod +x .git/hooks/commit-msg
```

### Rules

Start with type (`feat`, `fix`, `docs`, `style`, `refactor`, `test`, `chore`, `perf`, `ci`, `build`, `revert`) followed by `: ` and description. Lowercase, ≤60 characters.

Example: `feat: add path utility`

### History Cleanup

Use `scripts/rewrite_msg.sh` with `git filter-branch --msg-filter './scripts/rewrite_msg.sh' HEAD`.

## License

MIT
npm package: @harpman71/platzom
Description: Traductor de idioma platzom
Author: Mauricio Franco
Latest version: 0.1.0

# Platzom

Ejemplo de creación de un módulo npm para el [curso de fundamentos de java script](https://platzi,com/js).

## Descripción del idioma

- Si la palabra termina en "ar", se le quitan esos dos caracteres
- Si la palabra inicia con Z, se le añade "pe" al final
- Si la palabra traducida tiene 10 o más letras, se debe partir a la mitad y unir con un guión del medio
- Si la palabra original es un palíndromo, ninguna regla anterior cuenta y se devuelve la misma palabra intercalando mayúsculas y minúsculas

## Instalación
```
nmp install platzom
```

## Uso 

```
import platzom from 'platzom'
platzom("Programar") // Program
platzom("Zorro") // Zorrope
platzom("Zarpar") // Zarppe
platzom("abecedario") // abece-dario
platzom("sometemos") // SoMeTeMoS
```

## Créditos

- [Mauricio Frabco](http://www.mauriciofranco.com/)

## Licencia

[MIT](https://opensource.org/licenses/MIT)