1.1.1 • Published 6 years ago

nameable v1.1.1

Weekly downloads
-
License
ISC
Repository
-
Last release
6 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

6 years ago

1.1.0

6 years ago

1.0.13

6 years ago

1.0.12

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago