Extract names from usernames and email addresses with Node.js.
To add this to your existing project, install this as an NPM module.
npm install guess-who
Otherwise, clone the repo, install dependencies, and run the example.
git clone https://github.com/fraction/guess-who.git && cd guess-who
npm install
node examples/name-from-email
After you've installed guess-who
, require it and use it!
gw = require('guess-who');
gw('johndoe', function (username, name) {
console.log('"' + username + '" is actually "' + name.join(' ') + '"');
// "johndoe" is actually "john doe"
});
Take a look at the examples directory to see what else can be done.
Please open an issue for questions and concerns.
Fork the project, commit your changes, and open a pull request.