/nameparts

Takes a full name and splits it into individual name parts

Primary LanguageJavaScriptBSD 2-Clause "Simplified" LicenseBSD-2-Clause

nameparts

Build Status

nameparts is a code port from a Python project to NodeJS. The original Python module written by James Polera to address the problem of having to split full names into individual parts (first, middle, last, etc.).

To use this module:

> var NameParts = require('nameparts');
> var parts = NameParts.parse('Bruce Wayne a/k/a Batman');
> parts.firstName;
'Bruce'
> parts.lastName;
'Wayne'
> parts.aliases[0];
'Batman'

Installing

npm install nameparts

License

nameparts is released under the BSD license.