Login to the Hess Energy website using node.js and the request module
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://firstname.lastname@example.org:competitiveenergy/hess-login.git
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 =// currentLogin is a customer login for the websitevar currentLogin =username: 'fooUsername@gmail.com'password: 'barPassword'
# install the development dependenciesnpm install# run the testsnpm test