Wondering what’s next for npm?Check out our public roadmap! »

first-name

0.1.3 • Public • Published

first-name Build status for first-name on Circle CI.

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.

  1. Fork it.
  2. Make a feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request.

License

MPL-2.0 © Seth Holladay

Go make something, dang it.

Install

npm i first-name

DownloadsWeekly Downloads

2

Version

0.1.3

License

MPL-2.0

Last publish

Collaborators

  • avatar