# allreq

> Declarative conditional template literal string type

Latest version **0.1.0** (published 2022-01-28) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2022-01-28 |
| First published | 2022-01-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 8.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | just-do-halee |
| Maintainers | just.do.halee |
| Keywords | declarative, condition, conditional, template, string, literal, required, type |

## Links

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

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2022-01-28

## README

# **_`allreq`_**

_Declarative conditional template literal string type._

[![NPM Version][npm-image]][npm-url]
[![NPM Downloads][downloads-image]][downloads-url]
[![License][license-image]][license-url]
[[changelog]](CHANGELOG.md)

---

```js
npm install allreq
```

```js
yarn add allreq
```

---

## **_`Examples`_**

```typescript
import { allreq } from 'allreq';

let v = allreq`this could be undefined.
               if ${undefined} is undefined.`;

v === undefined; // true
```

#### _This is how to make a new allreq._

```typescript
import { newAllReq } from 'allreq';

const allreq = newAllReq(
  (anyArg: number) => anyArg <= 5,
  (invalidArg) => `${invalidArg} is <= 5`
);

let v = allreq`${0}, ${1}, ${2}, ${999} these are all <= 5`;

v === '999 is <= 5'; // true
```

## **License**<br>

[MIT](LICENSE)

[npm-image]: https://img.shields.io/npm/v/allreq.svg
[npm-url]: https://npmjs.org/package/allreq
[downloads-image]: https://img.shields.io/npm/dm/allreq.svg
[downloads-url]: https://npmcharts.com/compare/allreq?minimal=true
[license-url]: https://opensource.org/licenses/MIT
[license-image]: https://img.shields.io/npm/l/allreq

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