Skip to content
[Obsolete]A CLI tool to prerender a page and save html element by id to a file.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
bin
demo
spec
src
.gitignore
.travis.yml
LICENSE
README.md
appveyor.yml
clean-release.config.js
clean-scripts.config.js
package-lock.json
package.json
tslint.json

README.md

Dependency Status devDependency Status Build Status: Linux Build Status: Windows npm version Downloads

prerender-js

A CLI tool to prerender a page and save a html element to a file.

install

npm i prerender-js -g

usage

run prerender-js "http://example.com" --selector "#test" -o test.html

optional

  • --timeout 5000: milliseconds for data loading

nodejs usage

import { prerender } from "prerender-js";

prerender("http://example.com", "#test", "test.html");
You can’t perform that action at this time.