express-phantom

0.1.2 • Public • Published

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

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

3. Enjoy

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.2
    3
    • latest

Version History

Package Sidebar

Install

npm i express-phantom

Weekly Downloads

13

Version

0.1.2

License

none

Last publish

Collaborators

  • cwiz