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.
@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
@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:
See GitHub Releases.