# @remirror/core-utils

> Core utilities for dealing with the dom and prosemirror within remirror

Latest version **3.0.0** (published 2024-07-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install @remirror/core-utils
pnpm add @remirror/core-utils
yarn add @remirror/core-utils
bun add @remirror/core-utils
```

## Health

**Score 35/100 (D)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2024-07-30 |
| First published | 2019-09-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 10 |
| Unpacked size | 501.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3036 |
| Maintainers | ocavue, ifiokjr |

## Links

- npm: https://www.npmjs.com/package/@remirror/core-utils
- Repository: https://github.com/remirror/remirror
- Homepage: https://github.com/remirror/remirror/tree/HEAD/packages/remirror__core-utils
- Issues: https://github.com/remirror/remirror/issues
- npm.io page: https://npm.io/package/@remirror/core-utils

## Dependencies (10)

- [parenthesis](https://npm.io/package/parenthesis.md) ^3.1.8
- [min-document](https://npm.io/package/min-document.md) ^2.19.0
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.22.3
- [css-in-js-utils](https://npm.io/package/css-in-js-utils.md) ^3.1.0
- [get-dom-document](https://npm.io/package/get-dom-document.md) ^0.1.3
- [@remirror/messages](https://npm.io/package/@remirror/messages.md) 3.0.0
- [@types/min-document](https://npm.io/package/@types/min-document.md) ^2.19.0
- [@remirror/core-types](https://npm.io/package/@remirror/core-types.md) 3.0.0
- [@remirror/core-helpers](https://npm.io/package/@remirror/core-helpers.md) 4.0.0
- [@remirror/core-constants](https://npm.io/package/@remirror/core-constants.md) 3.0.0

## Recent versions

- 3.0.0 (latest) — 2024-07-30
- 3.0.0-beta.6 (beta) — 2024-07-22
- 0.0.0-pr2271.2 (pr2271) — 2024-07-18
- 0.0.0-pr2222.1 (pr2222) — 2023-12-12
- 0.0.0-pr2223.1 (pr2223) — 2023-12-12
- 0.0.0-pr2169.2 (pr2169) — 2023-11-06
- 0.0.0-pr2166.4 (pr2166) — 2023-10-06
- 0.0.0-pr2128.4 (pr2128) — 2023-07-26
- 0.0.0-pr2118.1 (pr2118) — 2023-07-13
- 0.0.0-pr2100.1 (pr2100) — 2023-06-28
- 0.0.0-pr1966.1 (pr1966) — 2022-12-26
- 0.0.0-pr1948.1 (pr1948) — 2022-11-25
- 0.0.0-pr1942.1 (pr1942) — 2022-11-21
- 0.0.0-pr1938.1 (pr1938) — 2022-11-15
- 0.0.0-pr1922.2 (pr1922) — 2022-10-26
- … 272 more at https://npm.io/package/@remirror/core-utils/versions

## README

# @remirror/core-utils

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

[![Version][version]][npm] [![Weekly Downloads][downloads-badge]][npm] [![Bundled size][size-badge]][size] [![Typed Codebase][typescript]](#) [![MIT License][license]](#)

[version]: https://flat.badgen.net/npm/v/@remirror/core-utils
[npm]: https://npmjs.com/package/@remirror/core-utils
[license]: https://flat.badgen.net/badge/license/MIT/purple
[size]: https://bundlephobia.com/result?p=@remirror/core-utils
[size-badge]: https://flat.badgen.net/bundlephobia/minzip/@remirror/core-utils
[typescript]: https://flat.badgen.net/badge/icon/TypeScript?icon=typescript&label
[downloads-badge]: https://badgen.net/npm/dw/@remirror/core-utils/red?icon=npm

## 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.

---
_Source: https://npm.io/package/@remirror/core-utils · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
