New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

hellobot

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hellobot

A friendly javascript pre-rendering engine - BETA (UNSTABLE)

latest
Source
npmnpm
Version
1.2.3
Version published
Maintainers
1
Created
Source

Hellobot

A friendly javascript pre-rendering engine - BETA (UNSTABLE)

npm install hellobot

Introduction

Pre-render your javascript pages on the fly for improved SEO.

Usage

This module contains 2 main entry points, the converter and the client...

The Converter

The converter is responsible for converting and responding with pre-renderdered HTML based on a url passed as a parameter.

var Hellobot = require('hellobot').server;
var hellobot = new Hellobot();

hellobot.req({ location: 'https://www.example.com/blog' })

The Client

If required, the client requests HTML from the converter, supplying a request endpoint.

const app = require('koa')();

var Hellobot = require('hellobot').client;
var hellobot = new Hellobot({ 
	converter: 'https://my-rest-endpoint.com/render',
});
app.use(hellobot.koa());

// Express coming soon

Caching the results

Supply an initialized redis client to persist HTML to cache for blazing fast loadspeed.

var redis = { ...my-redis-instance };

var Hellobot = require('hellobot').server;
var hellobot = new Hellobot({ 
	client: redis 
});

hellobot.req({ location: 'https://www.example.com/blog' })

Keywords

webcrawler

FAQs

Package last updated on 13 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts