human-name-splitter
v1.0.1
Published
Splitting human name into first name, last name, initials, etc.
Downloads
212
Maintainers
Readme
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",
}