@julianjark/notion-image
v0.9.0
Published
Helper functions for the Notion API
Downloads
2
Readme
Notion image utility
This package provides a utility to download images from Notion pages.
Example
export const imageUrlBuilder = createImageUrlBuilder("/api/notion-image");
export const loader = async ({ request }: { request: Request }) => {
return getNotionImage("YOUR NOTION TOKEN")(
Object.fromEntries(new URL(request.url).searchParams)
);
};