Update README.md

This commit is contained in:
AJ ONeal 2016-08-11 10:06:55 -06:00 committed by GitHub
parent 7481455791
commit 2ddc23a1ea
1 changed files with 4 additions and 2 deletions

View File

@ -38,14 +38,16 @@ var certpem = require('certpem').certpem
var cert = fs.readFile('cert.pem', 'ascii', function (err, certstr) { var cert = fs.readFile('cert.pem', 'ascii', function (err, certstr) {
// basic info // basic info
console.info(certpem.info()); console.info(certpem.info(certstr));
// way too much info // way too much info
console.info(certpem.debug()); console.info(certpem.debug(certstr));
}); });
``` ```
Example output:
```javascript ```javascript
{ {
"subject": "localhost.daplie.com", "subject": "localhost.daplie.com",