{"_id":"ngrid-electric-login","_rev":"31-979187e22e47d9dc83c955699f684b80","name":"ngrid-electric-login","description":"Login to the NGrid Electric website using curl","dist-tags":{"latest":"1.1.0"},"versions":{"0.0.1":{"name":"ngrid-electric-login","version":"0.0.1","description":"use iMacros in firefox to login to the NGrid Electric website","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/nisaacson/ngrid-electric-login.git"},"keywords":["docparse","nge","ngrid-electric"],"author":{"name":"Noah Isaacson"},"license":"BSD","readmeFilename":"README.md","gitHead":"c99a800dca77ca164b029af11b161a2fa9b2fe08","dependencies":{"imacros-read-file":"0.0.0"},"readme":"use iMacros in firefox to login to the NGrid Electric website\n","_id":"ngrid-electric-login@0.0.1","dist":{"shasum":"a108234ea7605a4056a1b585eac194172b5aebfb","tarball":"https://registry.npmjs.org/ngrid-electric-login/-/ngrid-electric-login-0.0.1.tgz","integrity":"sha512-RUgtkULKCm0nc7Y5Kyd35DUhkMDE4qv6e7QH5iC/LQ252JkFnwa/5AEmkpuNdT7vpKLWJ2UV9Ja5sj8R+mtbQQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCNJsrdd2jdXvdX7h137BfFM07r0DlbyrQZtDFt2iUh+QIgUiC3rmYEzSK12RtsY+QtCxIAjkt3o03kXU698OVgk7M="}]},"_npmVersion":"1.1.68","_npmUser":{"name":"clewfirst","email":"noah@nisaacson.com"},"maintainers":[{"name":"clewfirst","email":"noah@nisaacson.com"}],"directories":{}},"0.0.2":{"name":"ngrid-electric-login","version":"0.0.2","description":"use iMacros in firefox to login to the NGrid Electric website","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/nisaacson/ngrid-electric-login.git"},"keywords":["docparse","nge","ngrid-electric"],"author":{"name":"Noah Isaacson"},"license":"BSD","readmeFilename":"README.md","gitHead":"c99a800dca77ca164b029af11b161a2fa9b2fe08","dependencies":{"imacros-read-file":"0.0.0"},"readme":"use iMacros in firefox to login to the NGrid Electric website\n","_id":"ngrid-electric-login@0.0.2","dist":{"shasum":"9c4b09f61986b58dd1dbe118e6f4daec16f3d847","tarball":"https://registry.npmjs.org/ngrid-electric-login/-/ngrid-electric-login-0.0.2.tgz","integrity":"sha512-Gmoiu0paetagcBwpHqWa1U1ukInuUXBcO9xMZK2whdcM1A5bPZQJSyouVLF1aY68a4xrDj4yxz6G7pYD1iHyoA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAXFLzCwqr5hRjP+fZNKyKlBMgAZEANUmi2cknEHMqS+AiEAn/C1fc8QmD7LJoOv3P+BS+I0LKR4XpdApqi56DxfZUw="}]},"_npmVersion":"1.1.68","_npmUser":{"name":"clewfirst","email":"noah@nisaacson.com"},"maintainers":[{"name":"clewfirst","email":"noah@nisaacson.com"}],"directories":{}},"0.0.3":{"name":"ngrid-electric-login","version":"0.0.3","description":"use iMacros in firefox to login to the NGrid Electric website","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/nisaacson/ngrid-electric-login.git"},"keywords":["docparse","nge","ngrid-electric"],"author":{"name":"Noah Isaacson"},"license":"BSD","readmeFilename":"README.md","gitHead":"c99a800dca77ca164b029af11b161a2fa9b2fe08","dependencies":{"imacros-read-file":"0.0.0"},"readme":"use iMacros in firefox to login to the NGrid Electric website\n","_id":"ngrid-electric-login@0.0.3","dist":{"shasum":"cdf3e1de256d814f67194821dfcfedbfa1582e62","tarball":"https://registry.npmjs.org/ngrid-electric-login/-/ngrid-electric-login-0.0.3.tgz","integrity":"sha512-izQjlbWr/ixDpvd3AWEW5g5+LJLMpkGCvXqNH5nHkOsqVM946j1m4iaCeZsUTTqnNy47LJhBd2lAcLtm1ksGZA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHVt/KK6hwkOlVFafLQsFuWv3KSF/V/i3AWO0bjLH939AiEA/GMX31/9NGTfi3VMnT1v5QXaHaPRP+VF5JM9k4hfDhU="}]},"_npmVersion":"1.1.68","_npmUser":{"name":"clewfirst","email":"noah@nisaacson.com"},"maintainers":[{"name":"clewfirst","email":"noah@nisaacson.com"}],"directories":{}},"0.0.4":{"name":"ngrid-electric-login","version":"0.0.4","description":"use iMacros in firefox to login to the NGrid Electric website","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/nisaacson/ngrid-electric-login.git"},"keywords":["docparse","nge","ngrid-electric"],"author":{"name":"Noah Isaacson"},"license":"BSD","readmeFilename":"README.md","gitHead":"c99a800dca77ca164b029af11b161a2fa9b2fe08","dependencies":{"imacros-read-file":"0.0.0"},"readme":"use iMacros in firefox to login to the NGrid Electric website\n","_id":"ngrid-electric-login@0.0.4","dist":{"shasum":"6b9d553da5449d530a18e333bdb2987da9be5253","tarball":"https://registry.npmjs.org/ngrid-electric-login/-/ngrid-electric-login-0.0.4.tgz","integrity":"sha512-FElppcslQIYYzsufE5X0CkP8K2dK2L/TmNltnNZKBMeRd+ZU6rnio8Jm7uhvOTwgpEZd5xkaDKpOP2RA6wYHIA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDqfH3OQTE/0MuyG1FsOlij1bibLBliJD7kc5ebr1UwOAIgYfPESBLpuxHjG4IuMdWlTxLhF2312q9kJPt83sqtlpU="}]},"_npmVersion":"1.1.68","_npmUser":{"name":"clewfirst","email":"noah@nisaacson.com"},"maintainers":[{"name":"clewfirst","email":"noah@nisaacson.com"}],"directories":{}},"0.0.5":{"name":"ngrid-electric-login","version":"0.0.5","description":"use iMacros in firefox to login to the NGrid Electric website","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/nisaacson/ngrid-electric-login.git"},"keywords":["docparse","nge","ngrid-electric"],"author":{"name":"Noah Isaacson"},"license":"BSD","readmeFilename":"README.md","dependencies":{"imacros-read-file":"0.0.0"},"readme":"use iMacros in firefox to login to the NGrid Electric website\n","_id":"ngrid-electric-login@0.0.5","dist":{"shasum":"25feae917d5bd750298ad44dfb18625036a925f1","tarball":"https://registry.npmjs.org/ngrid-electric-login/-/ngrid-electric-login-0.0.5.tgz","integrity":"sha512-guxWK547JfdE0OW9UYbEGUJb45uFfESWQvdYMqEHHQ/eeBg4srG3FiNyOViPAldARUIllRlPBg7zEM+NmkK1ug==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBIG1fB3/2qkrfd8Gov459t2Ucp7UBVPas2wG0MRr/9TAiEAhCLpLfzFy9zLLEPwxUjaFkNg1t4xtAdvuvtZnuF2yrU="}]},"_npmVersion":"1.1.68","_npmUser":{"name":"clewfirst","email":"noah@nisaacson.com"},"maintainers":[{"name":"clewfirst","email":"noah@nisaacson.com"}],"directories":{}},"0.0.6":{"name":"ngrid-electric-login","version":"0.0.6","description":"use iMacros in firefox to login to the NGrid Electric website","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/nisaacson/ngrid-electric-login.git"},"keywords":["docparse","nge","ngrid-electric"],"author":{"name":"Noah Isaacson"},"license":"BSD","readmeFilename":"README.md","dependencies":{"imacros-read-file":"0.0.0"},"readme":"use iMacros in firefox to login to the NGrid Electric website\n","_id":"ngrid-electric-login@0.0.6","dist":{"shasum":"857b6abdf7b7e7476a0b80bd379e054c3e5a26ab","tarball":"https://registry.npmjs.org/ngrid-electric-login/-/ngrid-electric-login-0.0.6.tgz","integrity":"sha512-Sroa6hiwkbFessaCNuEHPPOppxdmM33nkjIa7r6+V0K3yTUMTfr4D3pPru8MHcFnSyzFK1/S92s//r0X0Ojjqw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC8RHJ27i92XJS2layAh/7JXbhe6BEtFmYXRNTVMI3nqAiAYMdLj4o4BerZOzK6z3MNEZIFeRGLlVMr3x8cDVBpePw=="}]},"_npmVersion":"1.1.68","_npmUser":{"name":"clewfirst","email":"noah@nisaacson.com"},"maintainers":[{"name":"clewfirst","email":"noah@nisaacson.com"}],"directories":{}},"1.0.0":{"name":"ngrid-electric-login","version":"1.0.0","description":"Login to the NGrid Electric website using curl","main":"index.js","directories":{"test":"test"},"scripts":{"test":"make test"},"keywords":["docparse","nge"],"author":{"name":"Noah Isaacson"},"license":"BSD","readmeFilename":"README.md","devDependencies":{"eyespect":"~0.1.8","should":"~1.2.2","mocha":"~1.9.0","rewire":"~1.1.2","optimist":"~0.4.0"},"dependencies":{"required-keys":"~1.0.5","async":"~0.2.6","cheerio":"~0.10.8","request":"~2.16.6","temp":"~0.5.0"},"readme":"# NGE Login\nNGrid Electric website login. A module to login to the NGrid Electric website using curl. The curl request will write the authenticated cookie to disk and return the path to the cookie file on disk. The cookie file can then be used in subsequent curl requests using the `--cookie` or `-b` option.\n\n# Installation\n```bash\nnpm install -S ngrid-electric-login\n```\n\n# Usage\nCall 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\n\n```javascript\nvar ngeLogin = require('ngrid-electric-login')\n// currentLogin is a customer login for the https://www1.nationalgridus.com website\nvar currentLogin = {\n  username: 'fooUsername@gmail.com',\n  password: 'barPassword'\n}\nngeLogin(currentLogin, function (err, cookiePath) {\n  if (err) {\n    console.dir('error logging into ngrid electric website', err)\n  }\n  console.dir('logged into ngrid electric website correctly, cookie file stored on disk at path', cookiePath)\n})\n```\n\nUse the cookie file on disk in another request\n\n```javascript\nvar ngeLogin = require('ngrid-electric-login')\n// currentLogin is a customer login for the https://www1.nationalgridus.com website\nvar currentLogin = {\n  username: 'fooUsername@gmail.com',\n  password: 'barPassword'\n}\nngeLogin(currentLogin, function (err, cookiePath) {\n  var args = [\n    '--cookie',\n    cookiePath,\n    '--insecure',\n    url\n  ]\n  var cmd = 'curl'\n  var curl = spawn(cmd, args)\n    curl.stdout.setEncoding('utf8')\n  var html = ''\n  var stdErr = ''\n  curl.stdout.on('data', function (data) {\n    html += data\n  })\n  curl.stderr.on('data', function (data) {\n    stdErr += data\n  })\n  curl.on('exit', function(code) {\n    // do something useful with the output here\n\n    // code is 0 on success, otherwise a code is a curl error code\n    console.dir('curl exit code', code)\n  })\n})\n```\n\n# Tests\nBoth unit and integration tests are available.\n\n```bash\n# install the development dependencies\nnpm install\n# run all tests (unit & integration)\nnpm test\n```\n\nTo run just the unit tests execute\n\n```bash\nmake unit\n```\n\nTo run just the integration tests execute \n\n```bash\nmake integration\n```\n\n","_id":"ngrid-electric-login@1.0.0","dist":{"shasum":"7704ed628045f346710119e99ac1f1a701a1ecd9","tarball":"https://registry.npmjs.org/ngrid-electric-login/-/ngrid-electric-login-1.0.0.tgz","integrity":"sha512-fzvRGJPYpY1I3viMizr1qqIBWTC7JaLBRTod5YYrqE2vd8/89sxWVsjakhnUql6UUKj2nYq3AU8vWI7SU1xplw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICYFl/K+QxYRlgAk67V46L76o1J74dP/2XJPCu/Axm9JAiEAq7Y0gYCfD8RCLBb/HVDFZHC/UOLbn3cPw2DrMg0Q29M="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"clewfirst","email":"noah@nisaacson.com"},"maintainers":[{"name":"clewfirst","email":"noah@nisaacson.com"}]},"1.0.1":{"name":"ngrid-electric-login","version":"1.0.1","description":"Login to the NGrid Electric website using curl","main":"index.js","directories":{"test":"test"},"scripts":{"test":"make test"},"keywords":["docparse","nge"],"author":{"name":"Noah Isaacson"},"license":"BSD","readmeFilename":"README.md","devDependencies":{"eyespect":"~0.1.8","should":"~1.2.2","mocha":"~1.9.0","rewire":"~1.1.2","optimist":"~0.4.0"},"dependencies":{"required-keys":"~1.0.5","async":"~0.2.6","cheerio":"~0.10.8","request":"~2.16.6","temp":"~0.5.0"},"readme":"# NGE Login\nNGrid Electric website login. A module to login to the NGrid Electric website using curl. The curl request will write the authenticated cookie to disk and return the path to the cookie file on disk. The cookie file can then be used in subsequent curl requests using the `--cookie` or `-b` option.\n\n# Installation\n```bash\nnpm install -S ngrid-electric-login\n```\n\n# Usage\nCall 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\n\n```javascript\nvar ngeLogin = require('ngrid-electric-login')\n// currentLogin is a customer login for the https://www1.nationalgridus.com website\nvar currentLogin = {\n  username: 'fooUsername@gmail.com',\n  password: 'barPassword'\n}\nngeLogin(currentLogin, function (err, cookiePath) {\n  if (err) {\n    console.dir('error logging into ngrid electric website', err)\n  }\n  console.dir('logged into ngrid electric website correctly, cookie file stored on disk at path', cookiePath)\n})\n```\n\nUse the cookie file on disk in another request\n\n```javascript\nvar ngeLogin = require('ngrid-electric-login')\n// currentLogin is a customer login for the https://www1.nationalgridus.com website\nvar currentLogin = {\n  username: 'fooUsername@gmail.com',\n  password: 'barPassword'\n}\nngeLogin(currentLogin, function (err, cookiePath) {\n  var args = [\n    '--cookie',\n    cookiePath,\n    '--insecure',\n    url\n  ]\n  var cmd = 'curl'\n  var curl = spawn(cmd, args)\n    curl.stdout.setEncoding('utf8')\n  var html = ''\n  var stdErr = ''\n  curl.stdout.on('data', function (data) {\n    html += data\n  })\n  curl.stderr.on('data', function (data) {\n    stdErr += data\n  })\n  curl.on('exit', function(code) {\n    // do something useful with the output here\n\n    // code is 0 on success, otherwise a code is a curl error code\n    console.dir('curl exit code', code)\n  })\n})\n```\n\n# Tests\nBoth unit and integration tests are available.\n\n```bash\n# install the development dependencies\nnpm install\n# run all tests (unit & integration)\nnpm test\n```\n\nTo run just the unit tests execute\n\n```bash\nmake unit\n```\n\nTo run just the integration tests execute \n\n```bash\nmake integration\n```\n\n","_id":"ngrid-electric-login@1.0.1","dist":{"shasum":"17c301631c1a328b30fada39366425cea297c545","tarball":"https://registry.npmjs.org/ngrid-electric-login/-/ngrid-electric-login-1.0.1.tgz","integrity":"sha512-Q85RFAuSvnQToRnpJ9Swpvg/TSTPDVjOlxHd/uge810cCCq1McyOekB/tCEf0cNUQZmHBmXqBVzVaW63V4nUkQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCWQsmu14PWTM9YYzVZ+8Uc3X6Q5kkxDVhNiln1I6gvgwIgJ3DTdUDumbjFK4gNLo2RifsFwAZqFY1YMJdtLD/8Q9c="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"clewfirst","email":"noah@nisaacson.com"},"maintainers":[{"name":"clewfirst","email":"noah@nisaacson.com"}]},"1.0.2":{"name":"ngrid-electric-login","version":"1.0.2","description":"Login to the NGrid Electric website using curl","main":"index.js","directories":{"test":"test"},"scripts":{"test":"make test"},"keywords":["docparse","nge"],"author":{"name":"Noah Isaacson"},"license":"BSD","readmeFilename":"README.md","devDependencies":{"eyespect":"~0.1.8","should":"~1.2.2","mocha":"~1.9.0","rewire":"~1.1.2","optimist":"~0.4.0"},"dependencies":{"required-keys":"~1.0.5","async":"~0.2.6","cheerio":"~0.10.8","request":"~2.16.6","temp":"~0.5.0","load-url":"~1.0.2"},"readme":"# NGE Login\nNGrid Electric website login. A module to login to the NGrid Electric website using curl. The curl request will write the authenticated cookie to disk and return the path to the cookie file on disk. The cookie file can then be used in subsequent curl requests using the `--cookie` or `-b` option.\n\n# Installation\n```bash\nnpm install -S ngrid-electric-login\n```\n\n# Usage\nCall 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\n\n```javascript\nvar ngeLogin = require('ngrid-electric-login')\n// currentLogin is a customer login for the https://www1.nationalgridus.com website\nvar currentLogin = {\n  username: 'fooUsername@gmail.com',\n  password: 'barPassword'\n}\nngeLogin(currentLogin, function (err, cookiePath) {\n  if (err) {\n    console.dir('error logging into ngrid electric website', err)\n  }\n  console.dir('logged into ngrid electric website correctly, cookie file stored on disk at path', cookiePath)\n})\n```\n\nUse the cookie file on disk in another request\n\n```javascript\nvar ngeLogin = require('ngrid-electric-login')\n// currentLogin is a customer login for the https://www1.nationalgridus.com website\nvar currentLogin = {\n  username: 'fooUsername@gmail.com',\n  password: 'barPassword'\n}\nngeLogin(currentLogin, function (err, cookiePath) {\n  var args = [\n    '--cookie',\n    cookiePath,\n    '--insecure',\n    url\n  ]\n  var cmd = 'curl'\n  var curl = spawn(cmd, args)\n    curl.stdout.setEncoding('utf8')\n  var html = ''\n  var stdErr = ''\n  curl.stdout.on('data', function (data) {\n    html += data\n  })\n  curl.stderr.on('data', function (data) {\n    stdErr += data\n  })\n  curl.on('exit', function(code) {\n    // do something useful with the output here\n\n    // code is 0 on success, otherwise a code is a curl error code\n    console.dir('curl exit code', code)\n  })\n})\n```\n\n# Tests\nBoth unit and integration tests are available.\n\n```bash\n# install the development dependencies\nnpm install\n# run all tests (unit & integration)\nnpm test\n```\n\nTo run just the unit tests execute\n\n```bash\nmake unit\n```\n\nTo run just the integration tests execute \n\n```bash\nmake integration\n```\n\n","_id":"ngrid-electric-login@1.0.2","dist":{"shasum":"2f54c449d09eae7e3bc8e76e58b171b3ebf2bab7","tarball":"https://registry.npmjs.org/ngrid-electric-login/-/ngrid-electric-login-1.0.2.tgz","integrity":"sha512-U6MoyoQ8I8V/eVW8KAf+UJAnc8CcLktvjJa+ys1pf7moCSJUAZA+WoNk+pS2BqK1yrBLQmAw11Jw3lhGZV4LcA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDs2BTtcbOHJSWWEa20ZGOuVBOoqrGcaB53T/mR71TGWQIgE7/RgTQYcZdNGH/hhpQCIO+Ufm10UwiIvbxtLfH8xmY="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"clewfirst","email":"noah@nisaacson.com"},"maintainers":[{"name":"clewfirst","email":"noah@nisaacson.com"}]},"1.1.0":{"name":"ngrid-electric-login","version":"1.1.0","description":"Login to the NGrid Electric website using curl","main":"index.js","directories":{"test":"test"},"scripts":{"test":"make test"},"keywords":["docparse","nge"],"author":{"name":"Noah Isaacson"},"license":"BSD","readmeFilename":"README.md","devDependencies":{"eyespect":"~0.1.8","should":"~1.2.2","mocha":"~1.9.0","rewire":"~1.1.2","optimist":"~0.4.0"},"dependencies":{"required-keys":"~1.0.5","async":"~0.2.6","cheerio":"~0.10.8","request":"~2.16.6","temp":"~0.5.0"},"readme":"# NGE Login\nNGrid Electric website login. A module to login to the NGrid Electric website using curl. The curl request will write the authenticated cookie to disk and return the path to the cookie file on disk. The cookie file can then be used in subsequent curl requests using the `--cookie` or `-b` option.\n\n# Installation\n```bash\nnpm install -S ngrid-electric-login\n```\n\n# Usage\nCall 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\n\n```javascript\nvar ngeLogin = require('ngrid-electric-login')\n// currentLogin is a customer login for the https://www1.nationalgridus.com website\nvar currentLogin = {\n  username: 'fooUsername@gmail.com',\n  password: 'barPassword'\n}\nngeLogin(currentLogin, function (err, cookiePath) {\n  if (err) {\n    console.dir('error logging into ngrid electric website', err)\n  }\n  console.dir('logged into ngrid electric website correctly, cookie file stored on disk at path', cookiePath)\n})\n```\n\nUse the cookie file on disk in another request\n\n```javascript\nvar ngeLogin = require('ngrid-electric-login')\n// currentLogin is a customer login for the https://www1.nationalgridus.com website\nvar currentLogin = {\n  username: 'fooUsername@gmail.com',\n  password: 'barPassword'\n}\nngeLogin(currentLogin, function (err, cookiePath) {\n  var args = [\n    '--cookie',\n    cookiePath,\n    '--insecure',\n    url\n  ]\n  var cmd = 'curl'\n  var curl = spawn(cmd, args)\n    curl.stdout.setEncoding('utf8')\n  var html = ''\n  var stdErr = ''\n  curl.stdout.on('data', function (data) {\n    html += data\n  })\n  curl.stderr.on('data', function (data) {\n    stdErr += data\n  })\n  curl.on('exit', function(code) {\n    // do something useful with the output here\n\n    // code is 0 on success, otherwise a code is a curl error code\n    console.dir('curl exit code', code)\n  })\n})\n```\n\n# Tests\nBoth unit and integration tests are available.\n\n```bash\n# install the development dependencies\nnpm install\n# run all tests (unit & integration)\nnpm test\n```\n\nTo run just the unit tests execute\n\n```bash\nmake unit\n```\n\nTo run just the integration tests execute \n\n```bash\nmake integration\n```\n\n","_id":"ngrid-electric-login@1.1.0","dist":{"shasum":"608dbd5da3d6f445b76f25d66a54daae020d7bc1","tarball":"https://registry.npmjs.org/ngrid-electric-login/-/ngrid-electric-login-1.1.0.tgz","integrity":"sha512-W8uZZJeAYR6oAGtRWCg5hM2klpUglEgEwRtz5Gfwf8mxHY8xh43aB2Me9nKKNcNAjO/E3J+D1S4mIVz4cSzGtw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDFu/vA0ZnhxoMx9cwyqh3pWuIp+HnbWEXtPzySsxAfNwIhAKGstPEHWRjB+5sC3qrMKXNByC//0zY9aty0AwAb0Z4F"}]},"_from":".","_npmVersion":"1.2.19","_npmUser":{"name":"clewfirst","email":"noah@nisaacson.com"},"maintainers":[{"name":"clewfirst","email":"noah@nisaacson.com"}]}},"readme":"use iMacros in firefox to login to the NGrid Electric website\n","maintainers":[{"name":"clewfirst","email":"noah@nisaacson.com"}],"time":{"modified":"2022-06-21T07:42:56.905Z","created":"2013-01-19T20:13:43.183Z","0.0.1":"2013-01-19T20:13:44.025Z","0.0.2":"2013-01-19T20:23:58.034Z","0.0.3":"2013-01-20T02:33:22.955Z","0.0.4":"2013-01-20T02:40:02.900Z","0.0.5":"2013-01-20T02:44:44.536Z","0.0.6":"2013-01-20T04:58:56.018Z","1.0.0":"2013-04-18T16:39:23.486Z","1.0.1":"2013-04-18T16:44:42.825Z","1.0.2":"2013-04-29T13:57:24.367Z","1.1.0":"2013-06-03T17:37:45.093Z"},"author":{"name":"Noah Isaacson"},"repository":{"type":"git","url":"git://github.com/nisaacson/ngrid-electric-login.git"}}