open-graph-response
v1.1.0
Published
build valid open graph html text from js object
Downloads
2
Readme
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);