0.0.14 • Published 10 months ago

@frankdiw/poster v0.0.14

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

poster

poster是基于 jsx 搭建,使用 node-canvas 绘制的海报生成库

使用方式

通过 jsx 进行编辑,采用行内样式进行布局,支持 flex 布局。可以给 jsx 传入 props.

样式支持情况

海报服务接口使用方式

import poster from '@frankdiw/poster';
export async function POST(request: NextRequest) {
  const data = await request.json();
  const base64 = await poster({ ...data, returnType: 'base64' });
  return Response.json({
    url: base64
  });
}
0.0.14

10 months ago

0.0.13

10 months ago

0.0.12

10 months ago

0.0.11

11 months ago

0.0.10

11 months ago

0.0.9

11 months ago

0.0.8

11 months ago

0.0.7

11 months ago

0.0.6

11 months ago

0.0.5

11 months ago

0.0.4

11 months ago

0.0.3

11 months ago

0.0.2

11 months ago

0.0.1

11 months ago