{"id":15690255,"url":"https://github.com/doowb/ask-for-github-auth","last_synced_at":"2025-07-15T07:03:07.288Z","repository":{"id":36209025,"uuid":"40513287","full_name":"doowb/ask-for-github-auth","owner":"doowb","description":"Prompt a user for their github authentication credentials and save the results.","archived":false,"fork":false,"pushed_at":"2015-10-16T02:54:29.000Z","size":129,"stargazers_count":8,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-07T23:36:20.495Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/doowb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-11T00:47:23.000Z","updated_at":"2018-06-24T12:24:30.000Z","dependencies_parsed_at":"2022-09-05T18:30:47.719Z","dependency_job_id":null,"html_url":"https://github.com/doowb/ask-for-github-auth","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/doowb/ask-for-github-auth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doowb%2Fask-for-github-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doowb%2Fask-for-github-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doowb%2Fask-for-github-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doowb%2Fask-for-github-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/doowb","download_url":"https://codeload.github.com/doowb/ask-for-github-auth/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doowb%2Fask-for-github-auth/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265416292,"owners_count":23761365,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T18:08:24.910Z","updated_at":"2025-07-15T07:03:07.266Z","avatar_url":"https://github.com/doowb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ask-for-github-auth [![NPM version](https://badge.fury.io/js/ask-for-github-auth.svg)](http://badge.fury.io/js/ask-for-github-auth)  [![Build Status](https://travis-ci.org/doowb/ask-for-github-auth.svg)](https://travis-ci.org/doowb/ask-for-github-auth)\n\n\u003e Prompt a user for their github authentication credentials and save the results.\n\nInstall with [npm](https://www.npmjs.com/)\n\n```sh\n$ npm i ask-for-github-auth --save\n```\n\n## Usage\n\n```js\nvar ask = require('ask-for-github-auth');\n```\n\n## API\n\n### [askForGithubAuth](index.js#L60)\n\nPrompt a user for their github authentication credentials. Save the answer so they're only asked once.\n\n**Params**\n\n* `options` **{Object}**: Options to pass to [ask-once](https://github.com/doowb/ask-once)\n* `options.store` **{String}**: a [data-store](https://github.com/jonschlinkert/data-store) instance or name that can be passed to [ask-once](https://github.com/doowb/ask-once)\n* `cb` **{Function}**: Callback function returning either an error or authentication credentials\n\n**Example**\n\n```js\nask(function (err, creds) {\n  console.log(creds);\n  //=\u003e    {type: 'oauth', token: '123456'}\n  //=\u003e or {type: 'basic', username: 'doowb', password: 'password'}\n});\n```\n\n## Related projects\n\n* [ask-once](https://github.com/doowb/ask-once): Only ask a question one time and store the answer.\n* [data-store](https://github.com/jonschlinkert/data-store): Easily get, set and persist config data.\n* [inquirer](https://github.com/sboudrias/Inquirer.js#readme): A collection of common interactive command line user interfaces.\n* [question-cache](https://github.com/jonschlinkert/question-cache): A wrapper around inquirer that makes it easy to create and selectively reuse questions.\n\n## Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm i -d \u0026\u0026 npm test\n```\n\n## Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/doowb/ask-for-github-auth/issues/new)\n\n## Author\n\n**Brian Woodward**\n\n+ [github/doowb](https://github.com/doowb)\n+ [twitter/doowb](http://twitter.com/doowb)\n\n## License\n\nCopyright © 2015 Brian Woodward\nReleased under the MIT license.\n\n***\n\n_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on August 20, 2015._","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoowb%2Fask-for-github-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoowb%2Fask-for-github-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoowb%2Fask-for-github-auth/lists"}