Skip to content

Commit

Permalink
README: Drop claimed support for using as a connect middleware
Browse files Browse the repository at this point in the history
We use a few of express's enhancements to the req/res objects, so this
isn't actually true. Removing this reliance by using the lower-level
nodejs http apis is definitely possible and does not add much complexity.

Refs: #1
  • Loading branch information
shesek committed Mar 20, 2018
1 parent c0da7b1 commit 37185ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![npm release](https://img.shields.io/npm/v/paypercall.svg)](https://www.npmjs.com/package/paypercall)
[![MIT license](https://img.shields.io/github/license/shesek/paypercall.svg)](https://github.com/shesek/paypercall/blob/master/LICENSE)

Charge for HTTP APIs on a pay-per-call basis with Bitcoin and Lightning. Available as an express/connect middleware and as a reverse proxy.
Charge for HTTP APIs on a pay-per-call basis with Bitcoin and Lightning. Available as an express middleware and as a reverse proxy.

Powered by :zap: [Lightning Charge](https://github.com/ElementsProject/lightning-charge).

Expand All @@ -17,7 +17,7 @@ $ npm install paypercall

### As a middleware

`paypercall` can be used as an express/connect middleware to charge payments directly in your node.js app.
`paypercall` can be used as an express middleware to charge payments directly in your node.js apps.
Below is an example app that charges 0.1 USD to send out tweets:

#### app.js
Expand Down Expand Up @@ -128,7 +128,7 @@ Returns a new payment middleware factory. `options` can contain the following fi
const payware = pay(amount[, currency])
```

Returns an express/connect middleware that requires a payment of `amount` units of `currency`
Returns an express middleware that requires a payment of `amount` units of `currency`
(or the default currency if none provided) before letting requests pass through.

Can be used as following:
Expand Down

0 comments on commit 37185ff

Please sign in to comment.