# swapple

> A tool to toggle comments on and off

Latest version **1.0.2** (published 2018-08-25) · ISC license · 0 weekly downloads

## Install

```sh
npm install swapple
pnpm add swapple
yarn add swapple
bun add swapple
```

Provides the command `swapple`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2018-08-25 |
| First published | 2018-08-17 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 76 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Clinton Baker |
| Maintainers | clintonbaker |

## Links

- npm: https://www.npmjs.com/package/swapple
- Repository: https://github.com/ClintonBaker/Swapple
- Homepage: https://github.com/ClintonBaker/Swapple#readme
- Issues: https://github.com/ClintonBaker/Swapple/issues
- npm.io page: https://npm.io/package/swapple

## Dependencies (2)

- [inquirer](https://npm.io/package/inquirer.md) ^6.1.0
- [commander](https://npm.io/package/commander.md) ^2.17.1

## Recent versions

- 1.0.2 (latest) — 2018-08-25
- 1.0.0-rc.0 — 2018-08-25
- 0.0.2 — 2018-08-19
- 0.0.0 — 2018-08-18
- 1.0.0 — 2018-08-17

## README

# swapple

Interactive CLI menu to toggle commented portions of files.

## Usage

**Install.**

```
npm i -g swapple
```

**Create toggle-able sections of your file.**

For example, here is a mock part of an Apache `httpd.conf` file using swapple comments to allow swapple to handle toggling for us.

```
# swapple start foo
ProxyPass /foo https://foo.com/
ProxyPassReverse /foo https://foo.com/
# swapple end

# swapple start bar
# ProxyPass /bar https://bar.com/
# ProxyPassReverse /bar https://bar.com/
# swapple end
```

**Use swapple to toggle sections on and off.**

```
swapple <path-to-your-file>
```

![gif of swapple in use](swappleexample.gif)

**Expect to find your file properly swapple'd.**

```
# swapple start foo
# ProxyPass /foo https://foo.com/
# ProxyPassReverse /foo https://foo.com/
# swapple end

# swapple start bar
ProxyPass /bar https://bar.com/
ProxyPassReverse /bar https://bar.com/
# swapple end
```

## Development

**Build**

```
npm run build
```

**Test**

```
npm t
```

---
_Source: https://npm.io/package/swapple · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
