@madebyconnor/rich-text-from-notion

1.0.0-alpha.2 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @madebyconnor/rich-text-from-notion

Weekly Downloads

0

Version

1.0.0-alpha.2

License

MIT

Unpacked Size

79.7 kB

Total Files

8

Last publish

Collaborators

  • connor_baer