# @christophemarois/yncli

> CLI utility that asks y/n and exists accordingly

Latest version **1.0.0** (published 2020-02-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install @christophemarois/yncli
pnpm add @christophemarois/yncli
yarn add @christophemarois/yncli
bun add @christophemarois/yncli
```

Provides the command `yn`.

## 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.0 |
| Published | 2020-02-05 |
| First published | 2020-02-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8 |
| Dependencies | 1 |
| Unpacked size | 2.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Christophe Marois |
| Maintainers | christophemarois |
| Keywords | nodejs, yn, prompt, confirm |

## Links

- npm: https://www.npmjs.com/package/@christophemarois/yncli
- Repository: https://github.com/christophemarois/yncli
- Homepage: https://github.com/christophemarois/yncli#readme
- Issues: https://github.com/christophemarois/yncli/issues
- npm.io page: https://npm.io/package/@christophemarois/yncli

## Dependencies (1)

- [prompts](https://npm.io/package/prompts.md) ^2.3.0

## Alternatives

- [localforage](https://npm.io/package/localforage.md) — 6.2M weekly downloads
- [localforage-observable](https://npm.io/package/localforage-observable.md) — 30.8K weekly downloads
- [@y/y](https://npm.io/package/@y/y.md) — 30.1K weekly downloads
- [@metaobjectsdev/render](https://npm.io/package/@metaobjectsdev/render.md) — 3.5K weekly downloads
- [@ledgerhq/coin-algorand](https://npm.io/package/@ledgerhq/coin-algorand.md) — 1.1K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2020-02-05

## README

# yncli

CLI utility that asks a y/n prompt and exits with the corresponding status code. Uses [prompts](https://github.com/terkelg/prompts).

Useful for preventing destructive actions from happening unintentionally.

### Install

```sh
npm install --save yncli ## for use in a project
npm install --global yncli ## for use globally
```

### Usage

```sh
yncli && echo 1 # echos 1 if user answered positively
yncli 'This will launch the rocket. Confirm?' && ./launch
```

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