JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 56
  • Score
    100M100P100Q49404F
  • License MIT

Easily crawl your public notion pages

Package Exports

  • notion-crawler
  • notion-crawler/dist/main.js
  • notion-crawler/dist/module.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (notion-crawler) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

notion-crawler

Easily crawl your public notion pages

Install

npm install notion-crawler

Usage

import notionCrawler from "notion-crawler";

const { pageBlocks, notionPageIdToSlugMapper, pageMap } = await notionCrawler(
  rootNotionPageId,
  spaceId,
  config
);

API

notionCrawler(rootNotionPageId, spaceId?, config?)

rootNotionPageId

Type: string

You can find it in at the end of your notion public url

For example, in case of https://ashiknesin.notion.site/AshikNesin-com-d95d7c8c5eaf40e1a7ae629f4aba0000

d95d7c8c5eaf40e1a7ae629f4aba0000 is rootNotionPageId.

spaceId

Type: string

config

Type: object Default: {}

Credits

This module is heavily based on nextjs-notion-starter-kit by Travis Fischer