From 7481455791235c2b29984e596bad4bdae31ea31c Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Thu, 11 Aug 2016 10:06:11 -0600 Subject: [PATCH] Update README.md --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 4872cfe..32c263e 100644 --- a/README.md +++ b/README.md @@ -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).