New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

notion-export-cli

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

notion-export-cli

fastest way to export notion pages.

latest
Source
npmnpm
Version
0.1.7
Version published
Maintainers
1
Created
Source

notion-export

fastest way to export notion pages.

使用

有两种使用方法,一种是通过命令行调用,一种是在代码中通过函数调用。

命令行:

notion-export-cli --email example@mail.com --password your_password --blockId page1_id --blockId page2_id

函数:

const notionExportFn = require('notion-export-cli');

notionExportFn({
    email: 'example@mail.com',
    password: 'your_password',
    blockId: [
      // ...
    ],
})
.then(res => {
    // ['page_content_download_url']
    console.log(res);
});

参数

参数名种类描述默认值
emailstringnotion 登录邮箱-
passwordstringnotion 登录密码-
blockIdstring|array导出的 notion 页面的 id-
exportTypestring导出 notion 页面的类型'markdown'

常见问题

怎么查看要导出的页面的 id?

首先打开页面,然后点击右上角的 share 按钮,会弹出如下弹窗: image 之后点击 copy link,就会得到页面链接,格式为:

https://www.notion.so/页面标题-blockId

通过查看链接即可得到 blockId。

FAQs

Package last updated on 17 Apr 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts