first-name
v0.1.3
Published
Get the first name of the user.
Downloads
8
Maintainers
Readme
first-name
Get the first name of the user.
Why?
- Put a personal touch on your app with a greeting.
- Smart user name detection, with fallbacks.
- Handles hyphenated names.
Install
npm install first-name --save
Usage
Get it into your program.
const firstName = require('first-name');
Get the user's first name.
firstName().then((name) => {
console.log('First name:', name);
});
API
firstName()
Returns a Promise
for the user's first name.
Contributing
See our contributing guidelines for more details.
- Fork it.
- Make a feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request.
License
Go make something, dang it.