diff --git a/README.md b/README.md index a57316f..11c029d 100644 --- a/README.md +++ b/README.md @@ -135,7 +135,7 @@ later, if you need them. `server.js`: -```bash +```js require("greenlock-express") .init(getConfig) .serve(worker); @@ -143,14 +143,14 @@ require("greenlock-express") function getConfig() { return { // uses name and version as part of the ACME client user-agent - // uses author as the contact for support notices + // uses author as the contact for support notices package: require("./package.json") }; } function worker(server) { // Works with any Node app (Express, etc) - var app = require('my-express-app.js'); + var app = require("my-express-app.js"); server.serveApp(app); } ``` diff --git a/main.js b/main.js index 018481b..661b672 100644 --- a/main.js +++ b/main.js @@ -32,5 +32,5 @@ if (major < 11 || (11 === major && minor < 2)) { if (shouldUpgrade) { console.warn("Warning: Please upgrade to node v11.2.0 or greater."); - console.warn(); + console.warn(); } diff --git a/master.js b/master.js index 235ec0e..fdc45a9 100644 --- a/master.js +++ b/master.js @@ -75,11 +75,11 @@ Master._spawnWorkers = function(opts, greenlock) { } } - cluster.on('exit', function () { - setTimeout(function () { - process.exit(3); - }, 100); - }); + cluster.on("exit", function() { + setTimeout(function() { + process.exit(3); + }, 100); + }); var workers = range(numWorkers); function next() {