Skip to content

express.js middleware for rendering single-page apps on server using phantom.js

Notifications You must be signed in to change notification settings

cwiz/express-phantom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

express-phantom

express-phantom middleware tests user agent against known browsers using useragent npm module. If no browser detected it renders the page using phantomjs.

1. Install phantomjs

On mac:

brew install phantomjs 

On Ubuntu:

sudo apt-get install phantomjs

2. Add express-phantom middleware

var expressPhantom = require("express-phantom");
app.use(expressPhantom.SEORender);

3. Enjoy

About

express.js middleware for rendering single-page apps on server using phantom.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published