# notion-utils

> Useful utilities for working with Notion data. Supports any JS environment including browsers.

Latest version **8.0.8** (published 2026-09-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install notion-utils
pnpm add notion-utils
yarn add notion-utils
bun add notion-utils
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 8.0.8 |
| Published | 2026-09-03 |
| First published | 2020-08-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Node | >=18 |
| Dependencies | 5 |
| Unpacked size | 127.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Travis Fischer <travis@transitivebullsh.it> |
| Maintainers | fisch0920, noahbragg |

## Links

- npm: https://www.npmjs.com/package/notion-utils
- Repository: NotionX/react-notion-x
- npm.io page: https://npm.io/package/notion-utils

## Dependencies (5)

- [memoize](https://npm.io/package/memoize.md) ^11.0.0
- [p-queue](https://npm.io/package/p-queue.md) ^9.3.3
- [notion-types](https://npm.io/package/notion-types.md) 8.0.8
- [is-url-superb](https://npm.io/package/is-url-superb.md) ^6.1.0
- [normalize-url](https://npm.io/package/normalize-url.md) ^9.0.1

## Recent versions

- 8.0.8 (latest) — 2026-09-03
- 8.0.7 — 2026-09-03
- 8.0.6 — 2026-08-23
- 8.0.5 — 2026-08-23
- 8.0.4 — 2026-08-23
- 8.0.3 — 2026-08-22
- 8.0.2 — 2026-08-18
- 8.0.1 — 2026-08-18
- 8.0.0 — 2026-08-18
- 7.12.1 — 2026-08-18
- 7.12.0 — 2026-08-15
- 7.11.1 — 2026-08-13
- 7.11.0 — 2026-08-13
- 7.10.0 — 2026-03-19
- 7.9.1 — 2026-03-19
- … 132 more at https://npm.io/package/notion-utils/versions

## README

<p align="center">
  <img alt="React Notion X" src="https://raw.githubusercontent.com/NotionX/react-notion-x/master/media/notion-ts.png" width="689">
</p>

# notion-utils

> Useful utilities for working with Notion data. Isomorphic.

[![NPM](https://img.shields.io/npm/v/notion-utils.svg)](https://www.npmjs.com/package/notion-utils) [![Build Status](https://github.com/NotionX/react-notion-x/actions/workflows/test.yml/badge.svg)](https://github.com/NotionX/react-notion-x/actions/workflows/test.yml) [![Prettier Code Formatting](https://img.shields.io/badge/code_style-prettier-brightgreen.svg)](https://prettier.io)

## Install

```bash
npm install notion-utils
```

This package is compatible with both Node.js and client-side web usage.

## Usage

```ts
import { parsePageId } from 'notion-utils'

parsePageId(
  'https://www.notion.so/Notion-Tests-067dd719a912471ea9a3ac10710e7fdf'
)
// '067dd719-a912-471e-a9a3-ac10710e7fdf'

parsePageId('About-d9ae0c6e7cad49a78e21d240cf2e3d04')
// 'd9ae0c6e-7cad-49a7-8e21-d240cf2e3d04'

parsePageId('About-d9ae0c6e7cad49a78e21d240cf2e3d04', { uuid: false })
// 'd9ae0c6e7cad49a78e21d240cf2e3d04'
```

## Docs

See the [full docs](https://github.com/NotionX/react-notion-x).

## License

MIT © [Travis Fischer](https://x.com/transitive_bs)

Support my OSS work by [following me on X](https://x.com/transitive_bs)

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