node package manager
Painless code sharing. npm Orgs help your team discover, share, and reuse code. Create a free org »

my-github-username

my-github-username

Get the Github username of the logged in user from ~/.gitconfig.

Not tested on Windows.

Installation

Get it:

$ npm install my-github-username

Require it:

var getUsername = require('my-github-username');

API

getUsername(cb)

Callback receives error, username.

Copyright & License

© 2014 Jason Frame [ @jaz303 / jason@onehackoranother.com ]

Released under the ISC license.