0.10.1 • Published 9 months ago

@noticle/hatena-blog v0.10.1

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

@noticle/hatena-blog

Hatena Blog package for converting Notion pages to Markdown.

🚀 Installation

# if JavaScript
npm install @noticle/core @noticle/hatena-blog

# if TypeScript
npm install @noticle/core @noticle/hatena-blog @noticle/types

📖 Usage

import { $getPageFullContent } from "@noticle/core";
import { NotionHatenaBlogMarkdownConverter } from "@noticle/hatena-blog";
import { Client } from "@notionhq/client";

const client = new Client({
  auth: API_KEY,
});

const pageId = "some-page-id";
// Notion API helpers in this library.
// Recursively retrieve the Notion Block's child elements
const content = await $getPageFullContent(client, pageId);

// convert to markdwon
const executor = new NotionHatenaBlogMarkdownConverter();
const result = executor.execute(content);

Block Options

License

Distributed under the MIT License. See LICENSE for more information.

Author

malvageee (https://github.com/salvage0707)

0.10.1

9 months ago

0.10.0

9 months ago

0.9.0

9 months ago