# is-graph-pointer

> Check what a graph pointer is pointing at

Latest version **2.2.0** (published 2025-05-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install is-graph-pointer
pnpm add is-graph-pointer
yarn add is-graph-pointer
bun add is-graph-pointer
```

## Health

**Score 50/100 (C)** — status: stable.

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

Warnings: low downloads.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 2.2.0 |
| Published | 2025-05-26 |
| First published | 2022-04-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Tomasz Pluskiewicz |
| Maintainers | tpluscode |
| Keywords | clownface, graph pointer, rdf/js |

## Links

- npm: https://www.npmjs.com/package/is-graph-pointer
- Repository: https://github.com/tpluscode/is-graph-pointer
- Homepage: https://github.com/tpluscode/is-graph-pointer#readme
- Issues: https://github.com/tpluscode/is-graph-pointer/issues
- npm.io page: https://npm.io/package/is-graph-pointer

## Dependencies (1)

- [@types/clownface](https://npm.io/package/@types/clownface.md) ^2.0.0

## Alternatives

- [d3-force-3d](https://npm.io/package/d3-force-3d.md) — 1.0M weekly downloads
- [ng2-charts](https://npm.io/package/ng2-charts.md) — 486.8K weekly downloads
- [@arcgis/core](https://npm.io/package/@arcgis/core.md) — 257.8K weekly downloads
- [react-sparklines](https://npm.io/package/react-sparklines.md) — 249.3K weekly downloads
- [react-native-gifted-charts](https://npm.io/package/react-native-gifted-charts.md) — 182.3K weekly downloads

## Recent versions

- 2.2.0 (latest) — 2025-05-26
- 2.1.0 — 2023-08-31
- 2.0.0 — 2023-03-23
- 1.3.0 — 2023-03-14
- 1.2.2 — 2022-05-27
- 1.2.1 — 2022-05-27
- 1.2.0 — 2022-05-15
- 1.1.0 — 2022-04-27
- 1.0.1 — 2022-04-15
- 1.0.0 — 2022-04-15

## README

# is-graph-pointer

Check what a graph pointer is pointing at

In an `if` condition:

```typescript
import type { GraphPointer } from 'clownface'
import type { NamedNode } from '@rdfjs/types'
import { isNamedNode } from 'is-graph-pointer'

let pointer: GraphPointer

if (isNamedNode(pointer)) {
  const term: NamedNode = pointer.term
}
```

To filter arrays:

```typescript
import type { MultiPointer } from 'clownface'
import type { Literal } from '@rdfjs/types'
import { isLiteral } from 'is-graph-pointer'

let pointer: MultiPointer

const literals: MultiPointer<Literal> = pointer.filter(isLiteral)
```

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