@norfield/persondeprecated

norfield person module

Usage no npm install needed!

<script type="module">
  import norfieldPerson from 'https://cdn.skypack.dev/@norfield/person';
</script>

README

@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