# @absolunet/joi

> joi extensions + extra goodies

Latest version **0.3.0** (published 2020-01-13) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @absolunet/joi
pnpm add @absolunet/joi
yarn add @absolunet/joi
bun add @absolunet/joi
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.3.0 |
| Published | 2020-01-13 |
| First published | 2019-11-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 12.0.0 |
| Dependencies | 2 |
| Unpacked size | 12.4 KB |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Absolunet |
| Maintainers | absolunetdev, jblandry, tparent-abso |
| Keywords | joi |

## Links

- npm: https://www.npmjs.com/package/@absolunet/joi
- Repository: https://github.com/absolunet/node-joi
- Homepage: https://documentation.absolunet.com/node-joi
- Issues: https://github.com/absolunet/node-joi/issues
- npm.io page: https://npm.io/package/@absolunet/joi

## Dependencies (2)

- [@hapi/joi](https://npm.io/package/@hapi/joi.md) ^17.0.2
- [is-var-name](https://npm.io/package/is-var-name.md) ^2.0.0

## Alternatives

- [vest](https://npm.io/package/vest.md) — 50.1K weekly downloads
- [@regle/core](https://npm.io/package/@regle/core.md) — 47.0K weekly downloads
- [typeof-arguments](https://npm.io/package/typeof-arguments.md) — 12.5K weekly downloads
- [@lokalise/projects-engine-contracts](https://npm.io/package/@lokalise/projects-engine-contracts.md) — 978 weekly downloads
- [@osjwnpm/nam-laboriosam-quibusdam](https://npm.io/package/@osjwnpm/nam-laboriosam-quibusdam.md) — 70 weekly downloads

## Recent versions

- 0.3.0 (latest) — 2020-01-13
- 0.2.0 — 2019-12-12
- 0.1.0 — 2019-11-12

## README

# @absolunet/joi

[![npm](https://img.shields.io/npm/v/@absolunet/joi.svg)](https://www.npmjs.com/package/@absolunet/joi)
[![npm dependencies](https://david-dm.org/absolunet/node-joi/status.svg)](https://david-dm.org/absolunet/node-joi)
[![npms](https://badges.npms.io/%40absolunet%2Fjoi.svg)](https://npms.io/search?q=%40absolunet%2Fjoi)
[![Travis CI](https://travis-ci.com/absolunet/node-joi.svg?branch=master)](https://travis-ci.com/absolunet/node-joi/builds)

> joi extensions + extra goodies


## Install

```bash
$ npm install @absolunet/joi
```


## Usage

```js
import { Joi, validateArgument } from '@absolunet/joi';

class MyClass () {

	constructor(path, value) {
		validateArgument('path',  path,  Joi.absolutePath().required());
		validateArgument('value', value, Joi.number().required());

		// Do your stuff
	}

}
```



## Extensions

### absolutePath
Validate that the value is an absolute *nix or Windows path.

### joiSchema
Validate that the value is a joi schema.

### kebabCase
Validate that the value is kebab-case.

### variableName
Validate that the value is a JavaScript valid variable name via [is-var-name](https://github.com/shinnn/is-var-name).



## Documentation

View [documentation](https://documentation.absolunet.com/node-joi)






<br><br>

## License

MIT © [Absolunet](https://absolunet.com)

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