From 4e749c6330db6702d3f4cb8c493297ffc98adaac Mon Sep 17 00:00:00 2001 From: Rautherdir Date: Mon, 1 Jun 2020 11:01:19 -0500 Subject: [PATCH] Update README.md Update the Greenlock v4 example to show the default 'packageAgent' field. --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 1e2aa1a..04fd3b4 100644 --- a/README.md +++ b/README.md @@ -51,8 +51,10 @@ See the [Greenlock.js documentation](https://www.npmjs.com/package/greenlock) fo ```js const Greenlock = require('greenlock'); +const pkg = require('./package.json'); const greenlock = Greenlock.create({ + packageAgent: pkg.name + '/' + pkg.version, configDir: "./store", maintainerEmail: "example@example.com" });