@remirror/core-utils
TypeScript icon, indicating that this package has built-in type declarations

2.0.13 • Public • Published

@remirror/core-utils

Provides core utility functions which are used throughout the remirror codebase.

Version Weekly Downloads Bundled size Typed Codebase MIT License

Installation

This is included by default when you install the recommended remirror package. All exports are also available via remirror/core/utils and remirror/core.

Usage

If you plan to support SSR and need to parse the html contents of the editor in an SSR environment then min-document is automatically added to all node environments.

However, min-document can't actually parse the content properly since the implementation is intentionally underpowered. To properly parse content from a html string you will need to install jsdom. These dependencies are only included within non-browser builds and won't bloat your bundle size in the browser.

Readme

Keywords

none

Package Sidebar

Install

npm i @remirror/core-utils

Weekly Downloads

36,515

Version

2.0.13

License

MIT

Unpacked Size

393 kB

Total Files

17

Last publish

Collaborators

  • ocavue
  • ifiokjr