git-credential

A simple utility to get user's git credentials from node

npm install git-credential
8 downloads in the last month

git-credential

A module for accessing git-credentials from a node process. Note that this requires a version of git >= 1.7.12

Usage:

var credential = require("git-credential")

credential(function(err, data){
  if (err) return console.log(err)
  // if you run this it'll print your username and pass to the command line.
  // you might not want that
  console.log(data)
})
npm loves you