This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

notion2mdblog
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

Notion to markdown blog

Install

npm install notion2mdblog
yarn add notion2mdblog

Usage

// Client is extended from @notionhq/client
import { Client } from "notion2mdblog";
import fs from "node:fs";

// Initializing a client
const notion = new Client({
  auth: process.env.NOTION_KEY,
});

async function main() {
  const blogPages = await notion.markdown.db2md({
    database_id: NOTION_DATABASE_ID,
  });
  blogPages.map((blogPage) => {
    fs.writeFileSync(`blogs/${blogPage.title}`, blogPage.content);
  });
}
main();

/notion2mdblog/

    Package Sidebar

    Install

    npm i notion2mdblog

    Weekly Downloads

    0

    Version

    0.0.1

    License

    ISC

    Unpacked Size

    14.2 kB

    Total Files

    8

    Last publish

    Collaborators

    • arpitbhalla