Skip to content
This repository has been archived by the owner on Oct 12, 2018. It is now read-only.

rogovdm-archive/open-graph-response

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Aim

Generating Open Graph HTML from object

Installation

npm install open-graph-response

Usage

const OpenGraphResponse = require("open-graph-response"),
      og = new OpenGraphResponse((id, cb) => {
        const title = `Title for entity #${id}`;
        return cb(null, { title });
      });
og.html(1).then(console.log).catch(console.log);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published