v1.1.0: drop some dependencies
This commit is contained in:
		
							parent
							
								
									155a281ba0
								
							
						
					
					
						commit
						fb4d599b25
					
				@ -3,6 +3,8 @@ cert-info.js
 | 
			
		||||
 | 
			
		||||
Read basic info from a cert.pem / x509 certificate.
 | 
			
		||||
 | 
			
		||||
Used for [Greenlock.js](https://git.coolaj86.com/coolaj86/greenlock-express.js)
 | 
			
		||||
 | 
			
		||||
Install
 | 
			
		||||
=======
 | 
			
		||||
 | 
			
		||||
@ -41,6 +43,7 @@ var cert = fs.readFile('cert.pem', 'ascii', function (err, certstr) {
 | 
			
		||||
  console.info(certpem.info(certstr));
 | 
			
		||||
 | 
			
		||||
  // way too much info
 | 
			
		||||
  // (requires npm install --save node.extend@1)
 | 
			
		||||
  console.info(certpem.debug(certstr));
 | 
			
		||||
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										2
									
								
								index.js
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								index.js
									
									
									
									
									
								
							@ -3,8 +3,6 @@
 | 
			
		||||
var certInfo = module.exports;
 | 
			
		||||
module.exports.certpem = certInfo;
 | 
			
		||||
 | 
			
		||||
require('buffer-v6-polyfill');
 | 
			
		||||
 | 
			
		||||
// this is really memory expensive to do
 | 
			
		||||
// (about half of a megabyte of loaded code)
 | 
			
		||||
certInfo._pemToBinAb  = function (pem) {
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										13
									
								
								package.json
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								package.json
									
									
									
									
									
								
							@ -1,6 +1,6 @@
 | 
			
		||||
{
 | 
			
		||||
  "name": "certpem",
 | 
			
		||||
  "version": "1.0.1",
 | 
			
		||||
  "version": "1.1.0",
 | 
			
		||||
  "description": "Read basic info (subject, altnames, expiresAt, issuedAt) from a cert.pem / x509 certificate (tls / ssl / https) ",
 | 
			
		||||
  "main": "index.js",
 | 
			
		||||
  "bin": {
 | 
			
		||||
@ -11,7 +11,7 @@
 | 
			
		||||
  },
 | 
			
		||||
  "repository": {
 | 
			
		||||
    "type": "git",
 | 
			
		||||
    "url": "git+https://github.com/Daplie/cert-info.js.git"
 | 
			
		||||
    "url": "https://git.coolaj86.com/coolaj86/cert-info.js.git"
 | 
			
		||||
  },
 | 
			
		||||
  "keywords": [
 | 
			
		||||
    "cert.pem",
 | 
			
		||||
@ -34,13 +34,14 @@
 | 
			
		||||
  "author": "AJ ONeal <coolaj86@gmail.com> (https://coolaj86.com/)",
 | 
			
		||||
  "license": "(MIT OR Apache-2.0)",
 | 
			
		||||
  "bugs": {
 | 
			
		||||
    "url": "https://github.com/Daplie/cert-info.js/issues"
 | 
			
		||||
    "url": "https://git.coolaj86.com/coolaj86/cert-info.js/issues"
 | 
			
		||||
  },
 | 
			
		||||
  "homepage": "https://github.com/Daplie/cert-info.js#readme",
 | 
			
		||||
  "homepage": "https://git.coolaj86.com/coolaj86/cert-info.js",
 | 
			
		||||
  "dependencies": {
 | 
			
		||||
    "asn1js": "^1.2.12",
 | 
			
		||||
    "buffer-v6-polyfill": "^1.0.3",
 | 
			
		||||
    "node.extend": "^1.1.5",
 | 
			
		||||
    "pkijs": "^1.3.27"
 | 
			
		||||
  },
 | 
			
		||||
  "trulyOptionalDependencies": {
 | 
			
		||||
    "node.extend": "^1.1.6"
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user