
Research
2025 Report: Destructive Malware in Open Source Packages
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.
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.jsto 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.
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.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.

Research
/Security News
A five-month operation turned 27 npm packages into durable hosting for browser-run lures that mimic document-sharing portals and Microsoft sign-in, targeting 25 organizations across manufacturing, industrial automation, plastics, and healthcare for credential theft.