Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

whosit

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

whosit

A personal name parser for Node.js: http://en.wikipedia.org/wiki/Personal_name

  • 1.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

whosit

Build Status Coverage Status

A personal name parser for Node.js: http://en.wikipedia.org/wiki/Personal_name

var whosit = require('whosit');

var name = whosit.parse('Mr. Shawn Michael Miller Sr.');

console.log(name.salutation); // Mr.
console.log(name.first); // Shawn
console.log(name.middle); // Michael
console.log(name.last); // Miller
console.log(name.suffix); // Sr.

Support for all kinds of names

var name = whosit.parse('Shawn Miller');
console.log(name.first); // Shawn
console.log(name.last); // Miller

name = whosit.parse('Dr. Dre');
console.log(name.salutation); // Dr.
console.log(name.last); // Dre

name = whosit.parse('Prince');
console.log(name.first); // Prince

Automatic detection of lexical formats

var name = whosit.parse('Miller,Shawn');
console.log(name.first); // Shawn
console.log(name.last); // Miller

name = whosit.parse('Miller, Shawn Michael');
console.log(name.first); // Shawn
console.log(name.middle); // Michael
console.log(name.last); // Miller

Support for many complex surnames

var name = whosit.parse('Michael Ó Conchúir');
console.log(name.first); // Michael
console.log(name.last); // Ó Conchúir

name = whosit.parse('Michael O Connor');
console.log(name.first); // Michael
console.log(name.middle); // O
console.log(name.last); // Connor

name = whosit.parse('Fintan Mac Néill');
console.log(name.salutation); // Fintan
console.log(name.last); // Mac Néill

name = whosit.parse('Joost van der Meer');
console.log(name.first); // Joost
console.log(name.last); // van der Meer

name = whosit.parse('Maria de la Cruz');
console.log(name.first); // Maria
console.log(name.last); // de la Cruz

Keywords

FAQs

Package last updated on 15 Jul 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc