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