ssrer-express-middleware
v0.2.1
Published
Express middleware for ssrer.
Downloads
3
Readme
Express Middleware for ssrer
Overview
An express middleware for ssrer. With this middleware you don't need to look over UserAgent of requests to see which one is from crawlers. This middleware does instead of you.
ssrer-express-middleware
has two works.
- crawler detection.
- proxy a GET request to ssrer.
ssrer-express-middleware
utilizes express-bot for crawler detection. Check it out for more details.
How to Use
$ npm install --save ssrer-express-middleware
const express = require('express');
const ssrerMiddleware = require('ssrer-express-middleware');
const app = express();
app.use(ssrerMiddleware(
{
url: 'url to ssrer server'
},
{ ... } // an object used for `express-bot`.
));