1.0.4 • Published 9 years ago

gh-username-available v1.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

gh-username-available

Find out whether a GitHub username is available or taken

Build Status

js-semistandard-style

Install

$ npm install --save gh-username-available

Usage

var ghUsernameAvailable = require('gh-username-available');

ghUsernameAvailable('icyflame', function (err, value) {
  console.log(value);
  //=> false
});

ghUsernameAvailable('harry-potter-1', function (err, value) {
  console.log(value);
  //=> true
});

CLI

$ npm install --global gh-username-available
$ gh-username-available --help

  Usage
    $ gh-username-available username

  Examples
    $ gh-username-available icyflame
    ✖ Taken

    $ gh-username-available harry-potter-1
    ✔ Available

API

ghUsernameAvailable(username, callback)

username

Required
Type: string

Username that you are trying to check

callback(err, value)

Required

value is true if the username is available, and false if it is taken.

License

MIT © Siddharth Kannan

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago