Get the first name of the user.
npm install first-name> Get the first name of the user.
- Put a personal touch on your app with a greeting.
- Smart user name detection, with fallbacks.
- Handles hyphenated names.
``sh`
npm install first-name --save
Get it into your program.
`js`
const firstName = require('first-name');
Get the user's first name.
`js`
firstName().then((name) => {
console.log('First name:', name);
});
Returns a Promise for the user's first name.
See our contributing guidelines for more details.
1. Fork it.
2. Make a feature branch: git checkout -b my-new-featuregit commit -am 'Add some feature'
3. Commit your changes: git push origin my-new-feature`
4. Push to the branch:
5. Submit a pull request.
Go make something, dang it.