# jungles-validation

> Validation module for jungles

Latest version **1.0.0** (published 2013-06-15) · 0 weekly downloads

## Install

```sh
npm install jungles-validation
pnpm add jungles-validation
yarn add jungles-validation
bun add jungles-validation
```

## 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 | 2013-06-15 |
| First published | 2013-06-15 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Geert Pasteels |
| Maintainers | enome |
| Keywords | jungles, validation |

## Links

- npm: https://www.npmjs.com/package/jungles-validation
- npm.io page: https://npm.io/package/jungles-validation

## Dependencies (1)

- [async](https://npm.io/package/async.md) ~0.1.22

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2013-06-15

## README

# Jungles Validation

You can find validators for jungles-validation at [jungles-validators](http://github.com/Enome/jungles-validators).

## Api

```js
var validators = require('jungles-validators');

var schema = {
  name: [ validators.required(), validators.string() ]
};

var data = {
  name: 'James'
};

var result = validate(data, schema);

result.valid(function (response) {
  // response: sanitized data
  // example: { name: 'James' }
});

result.invalid(function (errors) {
  // errors: object of arrays with errors
  // example: { name: [ 'String is required' ] }
});
```

## Test

mocha.js and should.js is needed.

```js
make test
```

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