node package manager
Stop writing boring code. Discover, share, and reuse within your team. Create a free org »


Hess Energy Login

A module to login to the Hess Energy website using request. Upon successful login, a request cookie jar object is returned which can be used in subsequent requests


npm install -S git+ssh://


Call with an object that has username and password fields set. If the login is successful the second parameter of the callback will be the path to the authenticated cookie file on disk that can be used in subsequent requests

var hesLogin = require('hess-login')
// currentLogin is a customer login for the website 
var currentLogin = {
  username: '',
  password: 'barPassword'
hesLogin(currentLogin, function (err, jar) {
  if (err) {
    console.dir('error logging into hess energy website', err)
  console.dir('logged into Hess Energy website correctly, current cookie jar', jar)


# install the development dependencies
npm install
# run the tests
npm test