get-ssl-certificate
Advanced tools
Comparing version 2.1.1 to 2.1.2
{ | ||
"name": "get-ssl-certificate", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "A micro-library that returns a website's SSL certificate", | ||
@@ -8,4 +8,4 @@ "main": "index.js", | ||
"test": "./node_modules/.bin/mocha --reporter spec", | ||
"coverage": "node node_modules/.bin/istanbul cover _mocha -- -R spec", | ||
"coveralls": "cat ./coverage/lcov.info | node node_modules/.bin/coveralls" | ||
"coverage": "./node_modules/.bin/istanbul cover node_modules/mocha/bin/_mocha -- -R spec", | ||
"coveralls": "cat ./coverage/lcov.info | node ./node_modules/coveralls/bin/coveralls.js" | ||
}, | ||
@@ -29,8 +29,8 @@ "repository": { | ||
"devDependencies": { | ||
"chai": "3.5.0", | ||
"chai": "4.1.2", | ||
"coveralls": "3.0.0", | ||
"istanbul": "0.4.5", | ||
"mocha": "3.2.0", | ||
"sinon": "1.17.7" | ||
"mocha": "5.1.1", | ||
"sinon": "5.0.2" | ||
} | ||
} |
@@ -8,3 +8,3 @@ # get-ssl-certificate | ||
[![Code Climate](https://codeclimate.com/github/johncrisostomo/get-ssl-certificate/badges/gpa.svg)](https://codeclimate.com/github/johncrisostomo/get-ssl-certificate) | ||
[![npm](https://img.shields.io/badge/npm-v2.1.1-blue.svg)](https://www.npmjs.com/package/get-ssl-certificate) | ||
[![npm](https://img.shields.io/badge/npm-v2.1.2-blue.svg)](https://www.npmjs.com/package/get-ssl-certificate) | ||
@@ -22,3 +22,3 @@ ### Installation | ||
``` | ||
var sslCertificate = require('get-ssl-certificate'); | ||
const sslCertificate = require('get-ssl-certificate') | ||
``` | ||
@@ -30,6 +30,6 @@ | ||
sslCertificate.get('nodejs.org').then(function (certificate) { | ||
console.log(certificate); | ||
console.log(certificate) | ||
// certificate is a JavaScript object | ||
console.log(certificate.issuer); | ||
console.log(certificate.issuer) | ||
// { C: 'GB', | ||
@@ -42,6 +42,6 @@ // ST: 'Greater Manchester', | ||
console.log(certificate.valid_from) | ||
// 'Nov 8 00:00:00 2015 GMT' | ||
// 'Aug 14 00:00:00 2017 GMT' | ||
console.log(certificate.valid_to) | ||
// 'Aug 22 23:59:59 2017 GMT' | ||
// 'Nov 20 23:59:59 2019 GMT' | ||
@@ -48,0 +48,0 @@ // If there was a certificate.raw attribute, then you can access certificate.pemEncoded |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12961