joi-file-extensions

Joi extension for files

Usage no npm install needed!

<script type="module">
  import joiFileExtensions from 'https://cdn.skypack.dev/joi-file-extensions';
</script>

README

joi-file-extensions

Joi extensions for file rules.

Build Status Coverage Status

Usage

const joi = require("@hapi/joi");
const customJoi = BaseJoi.extend(require("joi-file-extensions"));

const schema = customJoi.file().contents();

Directory layout

Follows CommonJS Package Directory Layout guidelines.