🚀. Socket Launch Week Day 2:Introducing Manifest Alerts.Learn more
Sign In

@brianmmdev/notion-to-html

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@brianmmdev/notion-to-html

A simple library that converts Notion pages to HTML.

latest
Source
npmnpm
Version
0.0.4
Version published
Maintainers
1
Created
Source

notion-to-html

A simple library that converts Notion pages to HTML.

⚠ THIS LIBRARY IS STILL A WIP. MANY BLOCKS ARE NOT YET SUPPORTED. THEY WILL BE ADDED OVER TIME.

How to Use

This package uses the official Notion API, so you'll need an integration token before you can use it. To create one, follow the guide at https://developers.notion.com/docs/getting-started.

const NotionToHtmlClient = require('@brianmmdev/notion-to-html')

let integrationToken = "123123123asdASDaasdfasdf"

// Create a client and pass in your integration token.
let client = new NotionToHtmlClient(integrationToken)

// Create html using the page ID (obtained from the URL)
let html = await client.generateHtmlFromPage("salkdjfalskdujf09a87dfo98as")

More examples will be added in the future.

Support

For assistance in using this project, contact me on Twitter @brianmmdev or in my Discord at fullstack.chat.

How to Contribute

  • Fork the repository and make the changes
  • Submit a PR into this repository
  • Win

Keywords

notion

FAQs

Package last updated on 02 Sep 2021

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