6.1.0 • Published 18 days ago

@wegolook/joi-objectid v6.1.0

Weekly downloads
354
License
BSD-3-Clause
Repository
gitlab
Last release
18 days ago

@wegolook/joi-objectid

Joi extension to support BSON ObjectId

Usage

// import and assignment
const Joi = require('joi'); // use version ^9.0.0
const joiObjectId = require('@wegolook/joi-objectid');
const myJoi = Joi.extend(joiObjectId);

// ...then
const result = myJoi.objectId().validate(myObjectId);
// result.value, result.errors, etc...

// ...or
myJoi.objectId().validate(myObjectId, (err, value) => { /*...*/ });

CI Status

Codeship Status for wegolook/joi-objectid

6.1.0

18 days ago

6.0.0

10 months ago

5.0.1

1 year ago

5.0.0

1 year ago

3.0.0

2 years ago

4.0.0

1 year ago

2.3.2

2 years ago

2.3.1

5 years ago

2.4.0

6 years ago

2.3.0

6 years ago

2.2.0

6 years ago

2.1.0

7 years ago

2.0.0

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.2.0

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago