Home

Awesome

ask-for-github-auth NPM version Build Status

Prompt a user for their github authentication credentials and save the results.

Install with npm

$ npm i ask-for-github-auth --save

Usage

var ask = require('ask-for-github-auth');

API

askForGithubAuth

Prompt a user for their github authentication credentials. Save the answer so they're only asked once.

Params

Example

ask(function (err, creds) {
  console.log(creds);
  //=>    {type: 'oauth', token: '123456'}
  //=> or {type: 'basic', username: 'doowb', password: 'password'}
});

Related projects

Running tests

Install dev dependencies:

$ npm i -d && npm test

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue

Author

Brian Woodward

License

Copyright © 2015 Brian Woodward Released under the MIT license.


This file was generated by verb-cli on August 20, 2015.