The one-liner node.js RESTful middleware for PostgreSQL tables.
npm i pgsql-proxy-middleware
yarn add pgsql-proxy-middleware
const bodyParser = require('body-parser');
const proxy = require('pgsql-proxy-middleware');
module.exports = function(app) {
app.use(bodyParser.json(), proxy({
database: '<database name>',
user: '<username>',
...
}, '<table-name>'));
};