# @textlint/ast-node-types

> textlint AST node type definition.

Latest version **15.8.0** (published 2026-08-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install @textlint/ast-node-types
pnpm add @textlint/ast-node-types
yarn add @textlint/ast-node-types
bun add @textlint/ast-node-types
```

## Health

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

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

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 15.8.0 |
| Published | 2026-08-01 |
| First published | 2017-05-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 43.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 3183 |
| Author | azu |
| Maintainers | azu, textlint-user |
| Keywords | textlint |

## Links

- npm: https://www.npmjs.com/package/@textlint/ast-node-types
- Repository: https://github.com/textlint/textlint
- Homepage: https://github.com/textlint/textlint#readme
- Issues: https://github.com/textlint/textlint/issues
- npm.io page: https://npm.io/package/@textlint/ast-node-types

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@inrupt/eslint-config-base](https://npm.io/package/@inrupt/eslint-config-base.md) — 4.5K weekly downloads

## Recent versions

- 15.8.0 (latest) — 2026-08-01
- 13.4.2-next.0 (next) — 2024-02-02
- 12.0.0-beta.3 (beta) — 2021-05-24
- 4.1.0-alpha.0f2fd6f9 (canary) — 2018-07-16
- 15.7.1 — 2026-05-18
- 15.7.0 — 2026-05-14
- 15.6.1 — 2026-05-11
- 15.6.0 — 2026-04-26
- 15.5.4 — 2026-04-09
- 15.5.2 — 2026-02-21
- 15.5.1 — 2026-01-19
- 15.5.0 — 2025-12-07
- 15.4.1 — 2025-12-03
- 15.4.0 — 2025-11-17
- 15.3.0 — 2025-11-10
- … 89 more at https://npm.io/package/@textlint/ast-node-types/versions

## README

# @textlint/ast-node-types

The definition for textlint AST Node types.

This module for parse plugin.


For more details, see [TxtNode document](https://github.com/textlint/textlint/blob/master/docs/txtnode.md).

## Installation

    npm install @textlint/ast-node-types

## Usage

```js
import { ASTNodeTypes } from "@textlint/ast-node-types";
console.log(ASTNodeTypes.Document); // => string
```

### Type interface for TxtNode

This library include type interface of [TxtNode](https://github.com/textlint/textlint/blob/master/docs/txtnode.md).
TypeScript user can use it as type of TxtNode.

```ts
// type interface
import { TxtNode } from "@textlint/ast-node-types";

```


## For parser creator

Please use it for creating your textlint-plugin parser.

Use it by

- textlint internal
- `@textlint/text-to-ast`
- `@textlint/markdown-to-ast`

## Versioning

- major: Breaking Change
- minor: Adding new type
- patch: Fixing issues

## Tests

    npm test

## Contributing

If you want to new type for AST, Please file issue :)

1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D

## License

MIT

---
_Source: https://npm.io/package/@textlint/ast-node-types · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
