# mdast-util-is-type

> Simple helpers to resolve MDAST types. Includes typescript types.

Latest version **0.1.0** (published 2020-06-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install mdast-util-is-type
pnpm add mdast-util-is-type
yarn add mdast-util-is-type
bun add mdast-util-is-type
```

## Health

**Score 30/100 (F)** — status: abandoned.

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

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2020-06-12 |
| First published | 2020-06-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=10 |
| Dependencies | 1 |
| Unpacked size | 30.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Callum Macdonald |
| Maintainers | chmac |

## Links

- npm: https://www.npmjs.com/package/mdast-util-is-type
- npm.io page: https://npm.io/package/mdast-util-is-type

## Dependencies (1)

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

## Recent versions

- 0.1.0 (latest) — 2020-06-12

## README

# mdast-util-is-type

Simple helpers to resolve MDAST types. Includes typescript types.

These functions are incredibly simple, for example:

```typescript
export const isHeading = (node: any): node is Heading => {
  return node.type === 'heading';
};
```

They can be used as type predicates. They're all single exports and so should
play nicely with tree shaking tools.

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