1.0.9 • Published 4 years ago
@norfield/person v1.0.9
@norfield/person
Person ⇐ Model
Base class for all people
Kind: global class
Extends: Model
new Person(props)
Constructs a new instance of a Person model
Param | Type | Default | Description |
---|---|---|---|
props | Object | Optional properties to assign to the instance | |
props.firstName | String | '' | Person's first name |
props.lastName | String | '' | Person's last name |
props.email | String | '' | Person's email |
props.phone | String | '' | Person's primary phone number |
props.cell | String | '' | Person's cell |
props.address | Address | Address of the person |
Example
const Person = require('@norfield/person');
const person = new Person({
firstName: "Michael",
lastName: "Heirendt",
...
});
Person.Schema
Kind: static property of Person
Installation
Install this module individually:
$ npm install @norfield/person
Or install the Norfield module that includes it as:
$ npm install @norfield/norfield