open-graph-response

1.1.0 • Public • Published

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);

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.1.00latest

Version History

VersionDownloads (Last 7 Days)Published
1.1.00
1.0.00
0.8.01

Package Sidebar

Install

npm i open-graph-response

Weekly Downloads

0

Version

1.1.0

License

MIT

Last publish

Collaborators

  • rogovdm