{"name":"node-ssllabs","version":"0.6.0","description":"A node.js library for the SSL Labs API.","main":"","repository":{"type":"git","url":"git+https://github.com/keithws/node-ssllabs.git"},"directories":{"test":"test"},"scripts":{"lint":"eslint \"**/*.js\"","pretest":"npm run lint","test":"mocha"},"keywords":["ssllabs","API","SSL","TLS","scan","test"],"author":{"name":"Keith Shaw"},"license":"MIT","devDependencies":{"eslint":"^5.16.0","mocha":"^6.1.4","should":"^13.2.3"},"dependencies":{"async":"^2.6.2","underscore":"^1.9.1"},"gitHead":"b92f3f7932f0a8148a60785a5d034db7b333c282","bugs":{"url":"https://github.com/keithws/node-ssllabs/issues"},"homepage":"https://github.com/keithws/node-ssllabs#readme","_id":"node-ssllabs@0.6.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"keithws","email":"keith.w.shaw@gmail.com"},"dist":{"integrity":"sha512-gLdlhwCcnHJ2CvTnxJVwUOFHrpWG+TuQlw7PUHZK+UAxJ5SdDo8NFkkiz1TNUcBm37QDrdjBCzF8SzSV49fi8A==","shasum":"5f3c488d490135c58b4dd90182b6c07c0b176ce4","tarball":"http://registry-npm.ywwl.com/node-ssllabs/download/node-ssllabs-0.6.0.tgz","fileCount":7,"unpackedSize":29469,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJczJfbCRA9TVsSAnZWagAAuVsQAKP90o05qsk3BvuxAqG/\nLhBfEnTfMjR8Zgnj6gdBBkx5qDZWedCsaxGOuMj+j1VwpzjprpPyCOzaFGKE\n+augzfxeOvTglTIkjMRd/wzbL8yZcXO6K5BS7+QbVu1tR2h4o0YzSmd95MbF\n7RQrFpH7o15JRkiesxGwnFeP+9xqw7eKX/2gaLpEVss/kroVo8SSN1d9blPL\n/dmhiqwN+OLluTeiHAufpzUcYQZwL6TbdG+TW1xTuIERbYqY0MwbX8N1FXhD\n4YzVXp+X7ymG3lofp1kf0gJYLM0Do//bkt+cmBDf334RIaldgvfTPRiS2p1t\n8eydRhjGPgGI9u1xRrPgLhdxC4AXnI3U//ZGjDNf5lsZkH6dQ+ryoYG7BLvJ\nPITS/tLC/3SU2Q0zJeKjlKvYWaHFxAd+U7rK77VR6Kqnl9ysWzcuRYfMH1vP\n18VUWgfVjUx999ixQEE2diNZO0ou5Yu7bTA6jSI+mrrwCDN07WUvVYaU/O6g\ngke0Q0wAYV2k8nYeL0IH3kJkUMLwuin2uzBgTwLmrz2PgPN/3pWvn5nZLteR\n9U11hY7YhOlhEA7VPSRRJb4Izc+8Rv3apy+7r7S+NHGpv7FgGzO6f3bt+p53\n5V7tP0OuXtquhPhtVjlNzxvPce+ZtYAq2Gm9sxKyHbaeSkP94McqBJmChsfz\n2jmf\r\n=ZZ2+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBLWVco9jdIHzsNhfsaA8TcZwc84DZ9AhhRIzXkLqzojAiAqAWh5OCJiJgQshfGl4R2/DwI1cXlmkwaJ1tDmuyzCqQ=="}],"size":7202,"noattachment":false,"key":"/node-ssllabs/-/node-ssllabs-0.6.0.tgz"},"maintainers":[{"name":"keithws","email":"keith.w.shaw@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/node-ssllabs_0.6.0_1556912090694_0.536134826907186"},"_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":1556912090802,"_cnpm_publish_time":1556912090802,"dist-tags":{"latest":"2.1.0"}}