You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

greenlock-express

Package Overview
Dependencies
Maintainers
2
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

greenlock-express - npm Package Compare versions

Comparing version

to
2.0.8

2

examples/force-renew.js
'use strict';
//require('letsencrypt-express')
//require('greenlock-express')
require('../').create({

@@ -5,0 +5,0 @@

'use strict';
//require('letsencrypt-express')
//require('greenlock-express')
require('../').create({

@@ -5,0 +5,0 @@

@@ -6,3 +6,3 @@ 'use strict';

// accept all defaults for le.challenges, le.store, le.middleware
var le = require('letsencrypt').create(opts);
var le = require('greenlock').create(opts);

@@ -9,0 +9,0 @@ opts.app = opts.app || function (req, res) {

{
"name": "greenlock-express",
"version": "2.0.7",
"version": "2.0.8",
"description": "Free SSL and managed or automatic HTTPS for node.js with Express, Koa, Connect, Hapi, and all other middleware systems.",

@@ -5,0 +5,0 @@ "main": "lex.js",

@@ -21,8 +21,8 @@ <!-- BANNER_TPL_BEGIN -->

| [letsencrypt (lib)](https://git.daplie.com/Daplie/node-greenlock)
| [letsencrypt-cli](https://git.daplie.com/Daplie/greenlock-cli)
| **letsencrypt-express**
| [letsencrypt-cluster](https://git.daplie.com/Daplie/greenlock-cluster)
| [letsencrypt-koa](https://git.daplie.com/Daplie/greenlock-koa)
| [letsencrypt-hapi](https://git.daplie.com/Daplie/greenlock-hapi)
| [greenlock (lib)](https://git.daplie.com/Daplie/node-greenlock)
| [greenlock-cli](https://git.daplie.com/Daplie/greenlock-cli)
| **greenlock-express**
| [greenlock-cluster](https://git.daplie.com/Daplie/greenlock-cluster)
| [greenlock-koa](https://git.daplie.com/Daplie/greenlock-koa)
| [greenlock-hapi](https://git.daplie.com/Daplie/greenlock-hapi)
|

@@ -44,3 +44,3 @@

```bash
npm install --save letsencrypt-express@2.x
npm install --save greenlock-express@2.x
```

@@ -59,3 +59,3 @@

require('letsencrypt-express').create({
require('greenlock-express').create({

@@ -89,3 +89,3 @@ server: 'staging'

firewalls, ports, permissions, etc - that you are likely to run up against
when using letsencrypt for your first time.
when using greenlock for your first time.

@@ -121,4 +121,4 @@ In order to avoid being blocked by hitting rate limits with bad requests,

// returns an instance of node-letsencrypt with additional helper methods
var lex = require('letsencrypt-express').create({
// returns an instance of node-greenlock with additional helper methods
var lex = require('greenlock-express').create({
// set to https://acme-v01.api.letsencrypt.org/directory in production

@@ -196,6 +196,6 @@ server: 'staging'

The API is actually located at [node-letsencrypt options](https://git.daplie.com/Daplie/node-greenlock)
(because all options are simply passed through to `node-letsencrypt` proper without modification).
The API is actually located at [node-greenlock options](https://git.daplie.com/Daplie/node-greenlock)
(because all options are simply passed through to `node-greenlock` proper without modification).
The only "API" consists of two options, the rest is just a wrapper around `node-letsencrypt` to take LOC from 15 to 5:
The only "API" consists of two options, the rest is just a wrapper around `node-greenlock` to take LOC from 15 to 5:

@@ -205,3 +205,3 @@ * `opts.app` An express app in the format `function (req, res) { ... }` (no `next`).

Brief overview of some simple options for `node-letsencrypt`:
Brief overview of some simple options for `node-greenlock`:

@@ -208,0 +208,0 @@ * `opts.server` set to https://acme-v01.api.letsencrypt.org/directory in production