open-index/open-npm huggingface dataset:
npm package: @nrademacher/file-ops-cli
Description: Basic Node CLI file operations
Author: Nikolay Rademacher
Latest version: 0.6.8

# File Ops CLI

A basic Node.js CLI app for common file operations.

Included so far:

- Find and replace
- Prepending
- Appending

## Installation

### Project-specific usage

```bash
npm install @nrademacher/file-ops-cli
```
### Global usage

```bash
npm install -g @nrademacher/file-ops-cli
```

## Usage

```bash
file-ops op=<op> <args> <file>
```

**Note:** Globbed file specifications (e.g. `*.js` or `src/**/*.js`) must be in quotes to prevent automatic glob expansion.

### Find and replace

```bash
file-ops fnr '<old>' '<new>' <flags> '<file>'
```
* `--silent`, `-s`
  * Will not log individual processed files to console

### Prepend

```bash
file-ops prepend '<text>' <flags> '<file>'
```

#### Flags

* `--silent`, `-s`
  * Will not log individual processed files to console
* `--unique`, `-u`
  * Will skip file if file already includes input string

### Append

```bash
file-ops append '<text>' <flags> '<file>'
```

#### Flags

* `--silent`, `-s`
  * Will not log individual processed files to console
* `--unique`, `-u`
  * Will skip file if file already includes input string

## TODO

- [ ] Add better and prettier logging
- [ ] Add quality-of-life CLI features
  - [ ] `--help` flag
- [ ] Add more operations
- [ ] Write tests
npm package: @nrademacher/prepend-cli
Description: CLI tool for prepending string data to files
Author: Nikolay Rademacher
Latest version: 1.0.10

# Prepend CLI

A very simple Node.js CLI app to prepend something to a file.

## Installation

### Project-specific usage

```bash
npm install @nrademacher/prepend-cli
```
### Global usage

```bash
npm install -g @nrademacher/prepend-cli
```

## Usage

```bash
prepend <text> <file>
```