1.0.9 • Published 4 years ago

@norfield/person v1.0.9

Weekly downloads
1
License
MIT
Repository
bitbucket
Last release
4 years ago

@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

ParamTypeDefaultDescription
propsObjectOptional properties to assign to the instance
props.firstNameString''Person's first name
props.lastNameString''Person's last name
props.emailString''Person's email
props.phoneString''Person's primary phone number
props.cellString''Person's cell
props.addressAddressAddress 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
1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago