Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
RunKit + npm: get-it-ready
node v8.17.0
version:
2.0.0
endpoint
share
tweet
var Joi = require('joi'); var getItReady = require('get-it-ready'); var personDefinition = { name: { type: String, required: true }, firstName: { type: String, required: true, joi: Joi.string() }, lastName: { type: String, required: true, joi: Joi.string() }, createdOn: { type: Date, required: false, default: Date.now, joi: Joi.date() } }; var person = getItReady(personDefinition, 'persons', 'Person', 'person');
Created from: https://runkit.com/npm/get-it-ready
Loading…
no comments
sign in
to comment