1.0.1 • Published 2 years ago
human-name-splitter v1.0.1
Human name splitter
Libarary for splitting human name into first name, last name, salutation, suffix & initials
Usage:
import {splitter} from "human-name-splitter"
const result = splitter("Mr. Mario De Vacelo Parirato IV")
console.log(result)
Result:
{
salutation: "Mr.",
firstName: "Mario",
lastName: "De Vacelo Parirato",
initials: "",
suffix: "IV",
}