human-name-splitter
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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",
  }

Package Sidebar

Install

npm i human-name-splitter

Weekly Downloads

39

Version

1.0.1

License

MIT

Unpacked Size

11.7 kB

Total Files

7

Last publish

Collaborators

  • shaban00