Need private packages and team management tools?Check out npm Teams »

@lyo/joi

14.3.1 • Public • Published

@lyo/joi

A browser-compatible version of joi built automatically with Lyo.

Version Build Hits

Usage

In a browser

<script src="https://cdn.jsdelivr.net/npm/@lyo/joi"></script>
 
<script>
  joi.any();
  joi.alt();
  joi.alternatives();
  joi.array();
  joi.bool();
  joi.boolean();
  joi.binary();
  joi.date();
  joi.func();
  joi.number();
  joi.object();
  joi.string();
  joi.symbol();
  joi.ref();
  joi.isRef(foo);
  joi.validate(foo);
  joi.describe();
  joi.compile(foo);
  joi.assert(foo, bar, baz);
  joi.attempt(foo, bar, baz);
  joi.reach(foo, bar);
  joi.lazy();
  joi.defaults(foo);
  joi.bind();
  joi.extend();
</script> 

In Node.js

# Install 
npm i @lyo/joi
const joi = require('@lyo/joi')
 
joi.any();
joi.alt();
joi.alternatives();
joi.array();
joi.bool();
joi.boolean();
joi.binary();
joi.date();
joi.func();
joi.number();
joi.object();
joi.string();
joi.symbol();
joi.ref();
joi.isRef(foo);
joi.validate(foo);
joi.describe();
joi.compile(foo);
joi.assert(foo, bar, baz);
joi.attempt(foo, bar, baz);
joi.reach(foo, bar);
joi.lazy();
joi.defaults(foo);
joi.bind();
joi.extend();

Disclaimer

This automated Lyo build may have not been properly tested, and is not guaranteed to work perfectly.

Use at your own risk

Keywords

none

Install

npm i @lyo/joi

DownloadsWeekly Downloads

11

Version

14.3.1

License

BSD-3-Clause

Unpacked Size

468 kB

Total Files

3

Last publish

Collaborators

  • avatar