express-phantom middleware tests user agent against known browsers using useragent npm module. If no browser detected it renders the page using phantomjs.
On mac:
brew install phantomjs On Ubuntu:
sudo apt-get install phantomjsvar expressPhantom = require("express-phantom");
app.use(expressPhantom.SEORender);