Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

first-name

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

first-name

Get the first name of the user.

latest
Source
npmnpm
Version
0.1.3
Version published
Maintainers
1
Created
Source

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.

  • 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

MPL-2.0 © Seth Holladay

Go make something, dang it.

Keywords

user

FAQs

Package last updated on 03 Mar 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts