Skip to content

Commit

Permalink
small readme file
Browse files Browse the repository at this point in the history
  • Loading branch information
FranciscoMoretti committed Sep 6, 2024
1 parent ef7c3be commit e9de07c
Showing 1 changed file with 41 additions and 2 deletions.
43 changes: 41 additions & 2 deletions packages/download-notion/README.md
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"
```

0 comments on commit e9de07c

Please sign in to comment.