Update README.md

This commit is contained in:
AJ ONeal 2016-08-11 10:06:11 -06:00 committed by GitHub
parent bed12df898
commit 7481455791
1 changed files with 8 additions and 0 deletions

View File

@ -17,6 +17,9 @@ npm install --save certpem
Usage
=====
CLI
---
For basic info (subject, altnames, issuedAt, expiresAt):
```bash
@ -25,6 +28,9 @@ certpem /path/to/cert.pem
Output all info by passing `--debug` or use `--json` to see the basic info pretty-printed.
node.js
-------
```javascript
'use strict';
@ -50,3 +56,5 @@ var cert = fs.readFile('cert.pem', 'ascii', function (err, certstr) {
"expiresAt": 1499731199000
}
```
With a few small changes this could also work in the browser (that's how its dependencies are designed).