express middleware for serving prerendered javascript-rendered pages for SEO
npm install prerender-nodePrerender Node  
===========================
Google, Facebook, Twitter, and Bing are constantly trying to view your website... but Google is the only crawler that executes a meaningful amount of JavaScript and Google even admits that they can execute JavaScript weeks after actually crawling. Prerender allows you to serve the full HTML of your website back to Google and other crawlers so that they don't have to execute any JavaScript. Google recommends using Prerender.io to prevent indexation issues on sites with large amounts of JavaScript.
Prerender is perfect for Angular SEO, React SEO, Vue SEO, and any other JavaScript framework.
This middleware intercepts requests to your Node.js website from crawlers, and then makes a call to the (external) Prerender Service to get the static HTML instead of the JavaScript for that page. That HTML is then returned to the crawler.
via npm:
$ npm install prerender-node --save
And when you set up your express app, add:
``js`
app.use(require('prerender-node'));
or if you have an account on prerender.io and want to use your token:
`js`
app.use(require('prerender-node').set('prerenderToken', 'YOUR_TOKEN'));
Note If you're testing locally, you'll need to run the prerender server locally so that it has access to your server.
This middleware is tested with Express3 and Express4, but has no explicit dependency on either.
The best way to test the prerendered page is to set the User Agent of your browser to Googlebot's user agent and visit your URL directly. If you View Source on that URL, you should see the static HTML version of the page with the