Update README.md

这个提交包含在:
AJ ONeal 2016-08-11 10:06:11 -06:00 提交者 GitHub
父节点 bed12df898
当前提交 7481455791

查看文件

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