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 https://www.hessenergy.com/dashboard/unauthenticated.aspx website