joi-shortid

5.0.0 • Public • Published

joi-shortid

Joi validation for shortid.

Usage

var Joi = require('joi').extend(require('joi-shortid'))
 
Joi.shortid().validate('Ny16zCfkdH3', function (err) {
  console.log(err ? 'Invalid' : 'Valid')
})

Package Sidebar

Install

npm i joi-shortid

Weekly Downloads

3

Version

5.0.0

License

ISC

Last publish

Collaborators

  • alanshaw