# notion-export

> Welcome to notion-export 👋

Latest version **1.0.3** (published 2021-08-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install notion-export
pnpm add notion-export
yarn add notion-export
bun add notion-export
```

Provides the command `notion-export`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2021-08-20 |
| First published | 2021-08-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Unpacked size | 7.3 KB |
| Known vulnerabilities | 0 (+31 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 4 |
| Maintainers | maciejwiatr |

## Links

- npm: https://www.npmjs.com/package/notion-export
- Repository: https://github.com/MaciejWiatr/notion-export
- Issues: https://github.com/MaciejWiatr/notion-export/issues
- npm.io page: https://npm.io/package/notion-export

## Dependencies (7)

- [esm](https://npm.io/package/esm.md) ^3.2.25
- [axios](https://npm.io/package/axios.md) ^0.21.1
- [chalk](https://npm.io/package/chalk.md) ^4.1.2
- [figlet](https://npm.io/package/figlet.md) ^1.5.2
- [adm-zip](https://npm.io/package/adm-zip.md) ^0.5.5
- [prompts](https://npm.io/package/prompts.md) ^2.4.1
- [log-update](https://npm.io/package/log-update.md) ^4.0.0

## Recent versions

- 1.0.3 (latest) — 2021-08-20
- 1.0.2 — 2021-08-20
- 1.0.1 — 2021-08-20
- 1.0.0 — 2021-08-20

## README

<h1 align="center">Welcome to notion-export 👋</h1>
<p>
  <img alt="Version" src="https://img.shields.io/badge/version-1.0.0-blue.svg?cacheSeconds=2592000" />
  <a href="#" target="_blank">
    <img alt="License: MIT" src="https://img.shields.io/badge/License-MIT-yellow.svg" />
  </a>
  <a href="https://twitter.com/maciej_wiatr" target="_blank">
    <img alt="Twitter: maciej_wiatr" src="https://img.shields.io/twitter/follow/maciej\_wiatr.svg?style=social" />
  </a>
</p>

> Simple notion utility that allows you to export notion pages programatically

## Install

```sh
yarn install
```

## CLI Usage

Simplest way to use notion-export is npx

```sh
npx notion-export
```
It will run series of prompts that will guide you through the process of exporting your notion page

## Programmatic usage
```js
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

* Website: mwiatr.live
* Twitter: [@maciej_wiatr](https://twitter.com/maciej\_wiatr)
* Github: [@MaciejWiatr](https://github.com/MaciejWiatr)

## Show your support

Give a ⭐️ if this project helped you!

***
_This README was generated with ❤️ by [readme-md-generator](https://github.com/kefranabg/readme-md-generator)_

---
_Source: https://npm.io/package/notion-export · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
