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'
npm install nameparts
nameparts is released under the BSD license.