A javascript library that helps you create models in your applications.
Quick Start
Using npm:
$ npm install --save vapi
In Node.js:
// /app/models/MyModel.jsconst Model =
Documentation
Quick Examples
{}// Define properties to Person model.PersonPerson {}// Define properties to User model.User // Create an instance of the User model.const cat = username: 'UserA' password: '1234' // Bad Password person: name: 'Julio' // Validationif cat // you code if is valid. else // you code of is not valid. // End Cat state// cat => // {// "username": "usera",// "password": "1234",// "person": {// "first": "julio",// "name": "julio"// }// }
Brand Vapi
Vapi (Virtual API) is an open brand whereby this not have a restriction in you use. However it is suggested to use this with the following specifications.
- Use the name Vapi:
Vapi
: The first letter uppercase.vapi
: all letters on lowercase.vapi.js
: Specific the javascript extension.
License
This project is under a MIT License.