1.1.1 • Published 5 years ago

nameable v1.1.1

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

Nameable Build Status

Format and truncate names of people.

Getting Started

npm install --save nameable

Setup

Set the configuration for the whole project.

const nameable = require('nameable')

nameable.config({
    firstKey: 'firstName',
    middleKey: 'middleName',
    lastKey: 'lastName',
})

Usage

const nameable = require('nameable')

const person = {
    firstName: 'John',
    middleName: 'Wayne',
    lastName: 'Smith',
}

const name = nameable.new(person)

console.log(name.format('Last, First M.')) // Smith, John W.
1.1.1

5 years ago

1.1.0

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago