Home

Awesome

github-generate-token npmjs.com The MIT License

Generating GitHub Personal Access Token using Basic Auth username:password

code climate standard code style travis build status coverage status dependency status

Install

npm i github-generate-token --save
npm test

API

For more use-cases see the tests

githubGenerateToken

Generate github token with Basic Auth

Example

var generateToken = require('github-generate-token')

var opts = {
  scopes: ['user', 'gist'],
  note: 'my awesome app note'
}

generateToken('username:password', opts, function (err, data) {
  if (err) return console.error(err)

  console.log(data.token) //=> token
})

Related

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
But before doing anything, please read the CONTRIBUTING.md guidelines.

Charlike Make Reagent new message to charlike freenode #charlike

tunnckocore.tk keybase tunnckocore tunnckoCore npm tunnckoCore twitter tunnckoCore github