# object-id-joi-extension

> A MongoDB ObjectId validator for [Joi](https://www.npmjs.com/package/joi).

Latest version **1.0.1** (published 2020-11-05) · ISC license · 0 weekly downloads

## Install

```sh
npm install object-id-joi-extension
pnpm add object-id-joi-extension
yarn add object-id-joi-extension
bun add object-id-joi-extension
```

## 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.1 |
| Published | 2020-11-05 |
| First published | 2020-11-05 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 55.2 KB |
| Known vulnerabilities | 0 (+3 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | yurii_derevenko |
| Keywords | joi, mongo, objectId, validation |

## Links

- npm: https://www.npmjs.com/package/object-id-joi-extension
- Repository: https://github.com/YuraDerevenko/joi-objectId-extension
- Homepage: https://github.com/YuraDerevenko/joi-objectId-extension#readme
- Issues: https://github.com/YuraDerevenko/joi-objectId-extension/issues
- npm.io page: https://npm.io/package/object-id-joi-extension

## Dependencies (1)

- [mongoose](https://npm.io/package/mongoose.md) ^5.10.11

## Recent versions

- 1.0.1 (latest) — 2020-11-05
- 1.0.0 — 2020-11-05

## README

# object-id-joi-extension

A MongoDB ObjectId validator for [Joi](https://www.npmjs.com/package/joi).

## Usage

```js
const Joi = require('joi');
const ObjectIdExtension = require('object-id-joi-extension');

const joiWithObjectIdValidator =  Joi.extend(ObjectIdExtension);
```

```ts
import { extend } from 'joi'
import JoiObjectIdExtension from 'object-id-joi-extension'

export const joiWithObjectIdValidator = extend(JoiObjectIdExtension)
```

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