-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ef7c3be
commit e9de07c
Showing
1 changed file
with
41 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,42 @@ | ||
# Notion Downloader CLI | ||
# Notion Downloader | ||
|
||
A CLI tool to download pages from notion and save them as markdown and image files. | ||
A powerful tool to download and convert your Notion pages to Markdown. | ||
|
||
## Features | ||
|
||
- Backup your Notion pages and databases | ||
- Cache your downloads | ||
- Convert Notion content to Markdown | ||
- Flexible naming and layout strategies | ||
- Image handling | ||
- Continuous pulling with revalidation | ||
|
||
## Installation | ||
|
||
```bash | ||
npm install notion-downloader | ||
``` | ||
|
||
## Usage | ||
|
||
1. Create a configuration file named `downloader.config.cjs` in your project root: | ||
|
||
```typescript | ||
import { NotionPullOptions, notionPull } from "notion-downloader" | ||
|
||
const options: NotionPullOptions = { | ||
rootId: "your-root-page-id", | ||
conversion: { | ||
outputPaths: { | ||
markdown: "./docs", | ||
images: "./docs/assets", | ||
}, | ||
}, | ||
} | ||
``` | ||
|
||
2. Run the downloader: | ||
|
||
```bash | ||
npx notion-downloader-cli pull --notion-token "your-notion-token" | ||
``` |