koa-rerender
use Chrome headless to render a javascript-rendered page as HTML
Last updated 3 years ago by andy*() .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install koa-rerender 
SYNC missed versions from official npm registry.

koa-rerender

===========================

koa-rerender is perfect for Single Page Application SEO.

koa-rerender is a service that uses Chrome headless to create static HTML out of a javascript page.

Installation

npm install --save koa-rerender

Usage

You can import from koa-rerender:

import { isCrawler, launch } from 'koa-rerender';

if (isCrawler(ctx.request)) {
  const reRender = await launch()
  const html = await reRender.render({ url: 'https://reactjs.org/docs/portals.html' })
}

Current Tags

  • 0.2.2                                ...           latest (3 years ago)

7 Versions

  • 0.2.2                                ...           3 years ago
  • 0.2.1                                ...           3 years ago
  • 0.2.0                                ...           3 years ago
  • 0.1.3                                ...           3 years ago
  • 0.1.2                                ...           3 years ago
  • 0.1.1                                ...           3 years ago
  • 0.1.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 2
Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |