git-credential

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

git-credential

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

var credential = require("git-credential")
 
credential(function(errdata){
  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)
})