1.0.0-alpha.2 • Published 5 years ago

@madebyconnor/rich-text-from-notion v1.0.0-alpha.2

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

rich-text-from-notion

A library to convert Notion page content to the Contentful Rich Text document format.

npm version Build Status codecov License MIT


rich-text-from-notion is in writing...

Some standout features include...

All this clocks in at around 3.7 kB gzipped.

⚠️ Requires Node >= 8.0.0.

Installation

Install @madebyconnor/rich-text-from-notion with your favorite package manager.

# yarn
yarn add @madebyconnor/rich-text-from-notion
# npm
npm install @madebyconnor/rich-text-from-notion

Getting started

@madebyconnor/rich-text-from-notion exports a function

import { richTextFromNotion } from '@madebyconnor/rich-text-from-notion';

richTextFromNotion(notionPageContent)

/*
    returns:

    rich text. duh! (in writing...)
 */

Getting the smallest possible bundle size

Many development conveniences are placed behind process.env.NODE_ENV !== "production" conditionals. When bundling your app, it's a good idea to replace these code snippets such that a minifier (like uglify) can sweep them away and leave a smaller overall bundle.

Here are instructions for some of the popular bundlers:

Changelog

See GitHub Releases.