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

Readme

Keywords

none

Package Sidebar

Install

npm i open-graph-response

Weekly Downloads

1

Version

1.1.0

License

MIT

Last publish

Collaborators

  • rogovdm