npm.io
1.0.3 • Published 4 years agoCLI

notion-export

Licence
MIT
Version
1.0.3
Deps
7
Size
7 kB
Vulns
21
Weekly
0
Stars
4

Welcome to notion-export

Version License: MIT Twitter: maciej_wiatr

Simple notion utility that allows you to export notion pages programatically

Install

yarn install

CLI Usage

Simplest way to use notion-export is npx

npx notion-export

It will run series of prompts that will guide you through the process of exporting your notion page

Programmatic usage

import { exportPage } from "notion-export/core.js" 
// const { exportPage } = require("notion-export/core.js")

exportPage(<page_url>, <destination_path>, <notion_v2_token>, <exportType>)

Supported export types are:

  • markdown
  • pdf
  • html

Author

Show your support

Give a ️ if this project helped you!


This README was generated with by readme-md-generator