【文件属性】:
文件名称:ask-for-github-auth:提示用户输入其github身份验证凭据并保存结果
文件大小:6KB
文件格式:ZIP
更新时间:2021-05-02 07:57:09
JavaScript
要求github-auth
提示用户输入其github身份验证凭据并保存结果。
用安装
$ npm i ask-for-github-auth --save
用法
var ask = require ( 'ask-for-github-auth' ) ;
原料药
提示用户输入其github身份验证凭据。 保存答案,以便只问一次。
参量
options {Object} :传递给选项
options.store {String} :可以传递给的实例或名称
cb {Function} :返回错误或身份验证凭据的回调函数
例子
ask ( function ( err , creds ) {
console . log ( creds ) ;
//=> {type: 'oauth', token: '123456'}
//=> or {type: 'basic', us
【文件预览】:
ask-for-github-auth-master
----.jshintrc(281B)
----.gitattributes(127B)
----example.js(305B)
----.verb.md(536B)
----test.js(222B)
----.travis.yml(151B)
----LICENSE(1KB)
----README.md(2KB)
----.editorconfig(294B)
----.gitignore(145B)
----index.js(2KB)
----package.json(923B)