{"name":"node-ssllabs","version":"2.0.0","description":"A node.js library for the SSL Labs API.","keywords":["ssllabs","API","SSL","TLS","scan","test"],"homepage":"https://github.com/keithws/node-ssllabs#readme","author":{"name":"Keith W. Shaw","email":"keith.w.shaw@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/keithws/node-ssllabs.git"},"scripts":{"lint":"eslint \"**/*.js\"","pretest":"npm run lint","test":"nyc --reporter=text mocha","coveralls":"nyc report --reporter=text-lcov | coveralls"},"main":"index","engines":{"node":">=8.0.0"},"devDependencies":{"async":"^3.2.0","coveralls":"^3.0.11","eslint":"^6.8.0","mocha":"^7.1.1","mocha-lcov-reporter":"^1.3.0","nyc":"^15.0.0","should":"^13.2.3"},"dependencies":{"proxy-agent":"^3.1.1"},"gitHead":"e62b0c2225215d213e5b7fe47c80dbccd1e195fe","bugs":{"url":"https://github.com/keithws/node-ssllabs/issues"},"_id":"node-ssllabs@2.0.0","_nodeVersion":"10.19.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-85g4EqrjhfBMPEFjfaB7sLbr/24N48QK/197rVh7MVyVAhF3Wx6/kq5MtNsaihC6gJi7V/0C28E9R+2DPw3Yng==","shasum":"41de9f85558486d463dc61f0e272fa42936a756c","tarball":"http://registry-npm.ywwl.com/node-ssllabs/download/node-ssllabs-2.0.0.tgz","fileCount":5,"unpackedSize":22221,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJemJWcCRA9TVsSAnZWagAA1KEP/2Qy5VdQ3NtsNaqq4Tvd\nT/0B+U4z2X+lNJGnmE+SX7hAK+eE2ZKZvrSxBNfi/8zeF4vCcQsNMlXCLmM3\nPIJvKkVSjV1G73CNDye+fzkD4REGvjP4O2ypTcwJSTvs3wJJ9cfkfNS/Ph9d\na2i2Z1xPeNQbpkDo6KmhxNvebqhEK1ER42+ZtK2Fd1Nni+X/KA6eGeQTfDP+\nUJhlPiENB5nsmbn3LMCvyBycxs2DgaygaCiz9O8zN3ktiuzqY3lK5dU4ki46\ndhHgTu4WDlBt8bvEJVHx61umwHDTfVVkjTQee7AU6Uit6b8yUBaiDpHdFkqW\nq20D7c44AV15Ph1HKvEQ8IsVa1kbvLX47mZxlO5pOe9NiJySaEN13G76qrhU\nW9Tm7p/J22h0xOI7e9QWUuYcg/iUMcvim6HI/bnvjs06sFjMV/OZpvZR5Wxi\nLlO8/Fesg9P/3C4AQ27Wnrdq3I++t3obFRfOUEtWjTegVU8nmK9hM4/AgWUF\neA/furtjVGUX2/guuTWFEjTEyd4alLMGKZ0xIyMi7y4CEKrmtQ8IJWoXsmKJ\noQU85Ym5An6xx75iuCBKW59gjxptwunDjwJDKujgLLsLZBnvhBwniNQlVLPE\nF+c8D4vVn1Hj+QzmdNSw0u9HnlzvoEhe+JT+/6lbK7CDg47VUm2X2WYL0SnZ\nX8Lu\r\n=SQvk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDHWU2/Wqc2LQgP7kQlWSb+zlciJdFk/UNnQD3mPsyKqgIhAOfxSYpCe42PEAaRj2f50kC26IgNTAhD821u5s58PeX/"}],"size":7272,"noattachment":false,"key":"/node-ssllabs/-/node-ssllabs-2.0.0.tgz"},"maintainers":[{"name":"keithws","email":"keith.w.shaw@gmail.com"}],"_npmUser":{"name":"keithws","email":"keith.w.shaw@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/node-ssllabs_2.0.0_1587058075504_0.632385063763367"},"_hasShrinkwrap":false,"readme":"# node-ssllabs\n\nA node.js library for the [SSL Labs API][1].\n\n[![npm version](https://img.shields.io/npm/v/node-ssllabs.svg)](https://www.npmjs.com/package/node-ssllabs)\n[![Build Status](https://travis-ci.com/keithws/node-ssllabs.svg?branch=master)](https://travis-ci.com/keithws/node-ssllabs)\n[![Coverage Status](https://coveralls.io/repos/github/keithws/node-ssllabs/badge.svg?branch=master)](https://coveralls.io/github/keithws/node-ssllabs?branch=master)\n[![dependencies](https://img.shields.io/david/keithws/node-ssllabs.svg)](https://david-dm.org/keithws/node-ssllabs)\n[![npm downloads per month](https://img.shields.io/npm/dm/node-ssllabs.svg)](https://www.npmjs.com/package/node-ssllabs)\n[![License](https://img.shields.io/npm/l/node-ssllabs.svg?color=blue)](https://github.com/keithws/node-ssllabs/blob/master/LICENSE)\n\n\n> SSL Labs APIs expose the complete SSL/TLS server testing functionality in a programmatic fashion, allowing for scheduled and bulk assessment. We are making the APIs available to encourage site operators to regularly test their server configuration.\n\n## Install\n\n\tnpm install node-ssllabs\n\n## Usage\n\n\tvar ssllabs = require(\"node-ssllabs\");\n\t\n\tssllabs.scan(\"www.ssllabs.com\", function (err, host) {\n\t\tconsole.dir(host);\n\t});\n\n## Test Usage\n\nTesting with [Mocha][5] and [Should.js][6].\n\n\tvar ssllabs = require(\"node-ssllabs\"),\n\t\tshould = require(\"should\");\n\t\n\tdescribe(\"www.ssllabs.com\", function () {\n\t\tit(\"should get an A+\", function (done) {\n\t\t\tssllabs.scan(\"www.ssllabs.com\", function (err, host) {\n\t\t\t\tif (err) {\n\t\t\t\t\tthrow err;\n\t\t\t\t}\n\t\t\t\thost.endpoints.forEach(function (endpoint) {\n\t\t\t\t\tendpoint.grade.should.equal(\"A+\");\n\t\t\t\t});\n\t\t\t\tdone();\n\t\t\t});\n\t\t});\n\t});\n\n## Advanced Usage\n\n\tvar ssllabs = require(\"node-ssllabs\");\n\t\n\tssllabs.scan({\n\t\t\"host\": \"www.ssllabs.com\",\n\t\t\"fromCache\": true,\n\t\t\"maxAge\": 24\n\t}, function (err, host) {\n\t\tconsole.dir(host);\n\t});\n\t\n\tssllabs.info(function (err, info) {\n\t\tconsole.dir(info);\n\t});\n\t\n\tssllabs.analyze({\n\t\t\"host\": \"www.ssllabs.com\",\n\t\t\"publish\": true,\n\t\t\"startNew\": true,\n\t\t\"all\": \"done\"\n\t}, function (err, host) {\n\t\tconsole.dir(host);\n\t});\n\t\n\tssllabs.analyze({\n\t\t\"host\": \"www.ssllabs.com\",\n\t\t\"fromCache\": true,\n\t\t\"maxAge\": 72,\n\t\t\"all\": \"on\",\n\t\t\"ignoreMismatch\": true\n\t}, function (err, host) {\n\t\tconsole.dir(host);\n\t});\n\t\n\tssllabs.getEndpointData({\n\t\t\"host\": \"www.ssllabs.com\",\n\t\t\"s\": \"64.41.200.100\",\n\t\t\"fromCache\": true\n\t}, function (err, endpointData) {\n\t\tconsole.dir(endpointData);\n\t});\n\t\n\tssllabs.getStatusCodes(function (err, statusCodes) {\n\t\tconsole.dir(statusCodes);\n\t});\n\t\n\tssllabs.getRootCertsRaw(function (err, rootCertsRaw) {\n\t\tconsole.dir(rootCertsRaw);\n\t});\n\n\tssllabs.getRootCertsRaw({\n\t\ttrustStore: 5\n\t}, function (err, rootCertsRaw) {\n\t\tconsole.dir(rootCertsRaw);\n\t});\n\n\tssllabs.getRootCerts(function (err, rootCerts) {\n\t\tconsole.dir(rootCerts);\n\t});\n\n\tssllabs.getRootCerts({\n\t\ttrustStore: 5\n\t}, function (err, rootCerts) {\n\t\tconsole.dir(rootCerts);\n\t});\n\n\n## Proxy all requests via a tunneling agent\n\nAs of version 1.1.0, this library will respect your `HTTPS_PROXY` environment variable and tunnel all requests to the specified URL. Compatible with all protocols supported by [proxy-agent](https://www.npmjs.com/package/proxy-agent).\n\nAs of version 2.1.0, this library will set the proxy agent on each request it makes and will not override the global HTTP agent.\n\n## License\n\nnode-ssllabs is available under the [MIT License][2].\n\n## Todo\n\n* add (more) support for [access rate and rate limiting][4]\n* incorporate new info field, newAssessmentCoolOff, to access rate and rate limiting\n* add option to specify an array of hosts to scan\n* figure out if the maxAge parameter is required with the fromCache parameter\n* make API version changeable (maybe?) with createClient()?\n\n## TODO for next minor release\n\n* have the `scan` function emit events for polling progress\n\n## TODO for next major release\n\n* promise-ify and modernize\n* refactor to be a Universal ES6 module that can be used client side and server side with the fetch and URL libraries\n* maintain support for using tunneling proxies (server side only?)\n\n## Change Log\n\n*2.1.0— April 16, 2020*\n\n* set proxy agent on each HTTP request instead\n\n*2.0.0— April 10, 2020*\n\n* dropping support for node 6 because eslint and nyc no longer support it\n\n*1.1.3— April 10, 2020*\n\n* added User Agent header to all requests\n* improved error handling\n\n*1.1.2— May 22, 2019*\n\n* refactored code to reduce cognitive complexity\n* increased test coverage\n\n*1.1.1— May 21, 2019*\n\n* refactored code to eliminate some duplicate code\n* added test coverage reporting\n\n*1.1.0— May 4, 2019*\n\n* added support for tunneling proxies via [proxy-agent](https://www.npmjs.com/package/proxy-agent)\n\n*1.0.2— May 3, 2019*\n\n* smaller install\n* better testing\n* faster builds\n\n*1.0.1— May 3, 2019*\n\n* call callback with error instead of throwing\n* normalized error handling code patterns\n* reordered tests so the fast tests run before the slow tests\n* added more tests for error handling in getEndpointData() and getRootCertsRaw()\n\n*1.0.0— May 3, 2019*\n\n* moved async to dev dependency (as it should have been)\n* removed underscore dependency (was very lightly used)\n* added dependency on node v4.0.0 for Object.assign\n\n*0.6.0— May 2, 2019*\n\n* updated API endpoint from v2 to v3\n* updated dependencies\n* switched from JSHint to eslint for syntax checking\n* fixed typos\n* added basic support for access rate and rate limiting to `scan()`\n* added support for the `trustStore` parameter to the `getRootCertsRaw()` call\n* added `getRootCerts()` call that returns the data as a plain-old object\n\n*0.5.0 — July 14, 2016*\n\n* added support for new API call, `getRootCertsRaw`\n* improved testing with Mocha\n* improved `normalizeOptions` function\n* updated documentation\n\n*0.4.3 — May 1, 2015*\n\n* removed requirement that maxAge must be set if fromCache is set\n* added check that fromCache is set if maxAge is set\n* fixed bug where NaN was accepted for the maxAge parameter\n\n*0.4.2 — April 27, 2015*\n\n* added call to `info` before calling `analyze` in the `scan` function\n\n*0.4.1 — April 27, 2015*\n\n* refactored `scan` function to use `analyze` function for dryness\n* improved test to ensure parallel scanning maintains context\n\n*0.4.0 — April 23, 2015*\n\n* added option to only specify a hostname for scanning\n* added test for lost context in parallel scans\n* added test if `startNew` and `fromCache` options are both true\n* added additional parameter tests and verification\n\n*0.3.0 — April 21, 2015*\n\n* added `scan` function to encapsulate [protocol usage][3]\n\n*0.2.0 — April 20, 2015*\n\n* updated to work properly in other packages.\n\n*0.1.0 — April 20, 2015*\n\n* added support for the `getEndpointData` api endpoint.\n* added support for the `getStatusCodes` api endpoint.\n* improved error handling and reporting.\n\n*0.0.1 — April 20, 2015*\n\n* Initial version\n* supports two api endpoints, `info` and `analyze`\n\n\n  [1]: https://www.ssllabs.com/projects/ssllabs-apis/\n  [2]: https://github.com/keithws/node-ssllabs/blob/master/LICENSE\n  [3]: https://github.com/ssllabs/ssllabs-scan/blob/master/ssllabs-api-docs.md#protocol-usage\n  [4]: https://github.com/ssllabs/ssllabs-scan/blob/master/ssllabs-api-docs.md#access-rate-and-rate-limiting\n  [5]: http://mochajs.org\n  [6]: http://shouldjs.github.io\n","publish_time":1587058075709,"_cnpm_publish_time":1587058075709,"dist-tags":{"latest":"2.1.0"}}