node-ogp-creator
TypeScript icon, indicating that this package has built-in type declarations

0.1.3 • Public • Published

node-ogp-creator

Node.js 環境で動く OGP ジェネレーターです。

Usage

npm install node-ogp-creator
import { createOGP } from "node-ogp-creator";
 
createOGP({
  title: "title_string",
  userName: "youName",
  path: "public/ogp/example.png",
  width: 640,
  height: 480,
});

Options

example

{
  title'your_ogp_title',
  path'ogp_export_path',
  userName'your_name',
  width640, // canvas width
  height480, // canvas height
  styles{
    font'sans-serif',
    backgroudColor'#fff',
    textColor'000',
    fontSize30,
    userNamePositionX450,
    userNamePositionY400,
  }
}

License

MIT

/node-ogp-creator/

    Package Sidebar

    Install

    npm i node-ogp-creator

    Weekly Downloads

    1

    Version

    0.1.3

    License

    MIT

    Unpacked Size

    28.1 kB

    Total Files

    25

    Last publish

    Collaborators

    • eringi_v3