
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Modern, simplified Github login, CLI and API - generating personal access token. Support promises and node-style callbacks.
Modern, simplified Github login, CLI and API - generating personal access token. Support promises and node-style callbacks.
npm install gitlogin
npm test
gitlogin --help
For more use-cases see the tests. You can run
node example.js
to try it.
var gitlogin = require('gitlogin');
var opts = {
//auth: 'username:password'
username: 'your github username',
password: 'your github pass',
scopes: ['repo', 'gist'],
note: 'My awesome cli login'
};
// callback-style
gitlogin(opts, function cb(err, res) {
console.log('FROM CB:', err, res);
})
// or promise-style
gitlogin(opts)
.then(console.log)
.catch(console.error)
// or hybrid
gitlogin(opts, function cb(err, res) {
console.log('FROM CB:', err, res);
})
.then(console.log)
.catch(console.error)
$ gitlogin --help
Modern, simplified Github login, CLI and API - generating personal access token. Support promises and node-style callbacks.
Options
--help Show this help
--version Current version of package
-u | --username Your Github username, required
-p | --password Your Github password, required
-s | --scopes Scopes for github, not required
-n | --note Note for the app, not required
-t | --token-only If you want to show only token
-j | --json Output full JSON.stringified response
Usage
gitlogin <username> <password> [scopes] [note]
gitlogin -p <password> -n [note] -u <username> -s [scopes]
Examples
gitlogin tunnckoCore myPassword 'repo, gist, delete_repo' 'some note for app'
gitlogin tunnckoCore myPassword repo,gist,delete_repo 'some note for app'
gitlogin tunnckoCore myPassword '' '' true false
gitlogin --username tunnckoCore --password myPassword
gitlogin --scopes repo,gist,delete_repo -u tunnckoCore -n myAwesomeApp -p myPassword
gitlogin -u tunnckoCore -p myPassword
Charlike Mike Reagent
Copyright (c) 2014 Charlike Mike Reagent, contributors.
Released under the MIT
license.
Powered and automated by readdirp + hogan.js, December 24, 2014
FAQs
Modern, simplified Github login, CLI and API - generating personal access token. Support promises and node-style callbacks.
The npm package gitlogin receives a total of 3 weekly downloads. As such, gitlogin popularity was classified as not popular.
We found that gitlogin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.