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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.3
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.3
    2
  • 0.1.2
    1
  • 0.1.1
    0
  • 0.1.0
    0

Package Sidebar

Install

npm i node-ogp-creator

Weekly Downloads

3

Version

0.1.3

License

MIT

Unpacked Size

28.1 kB

Total Files

25

Last publish

Collaborators

  • eringi_v3