# ordered-ast-traverse

> simple but flexible lexically ordered AST traversal with pre and post visitors

Latest version **1.1.1** (published 2015-01-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install ordered-ast-traverse
pnpm add ordered-ast-traverse
yarn add ordered-ast-traverse
bun add ordered-ast-traverse
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2015-01-29 |
| First published | 2014-05-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Author | Olov Lassus |
| Maintainers | olov |
| Keywords | ast, traverse, traversal, walk, visit, visitor, acorn, esprima |

## Links

- npm: https://www.npmjs.com/package/ordered-ast-traverse
- Repository: https://github.com/olov/ordered-ast-traverse
- Issues: https://github.com/olov/ordered-ast-traverse/issues
- npm.io page: https://npm.io/package/ordered-ast-traverse

## Dependencies (1)

- [ordered-esprima-props](https://npm.io/package/ordered-esprima-props.md) ~1.1.0

## Alternatives

- [update-check](https://npm.io/package/update-check.md) — 4.0M weekly downloads
- [react-native-onesignal](https://npm.io/package/react-native-onesignal.md) — 134.5K weekly downloads
- [react-redux-toastr](https://npm.io/package/react-redux-toastr.md) — 33.7K weekly downloads
- [@nocobase/plugin-notification-manager](https://npm.io/package/@nocobase/plugin-notification-manager.md) — 2.0K weekly downloads
- [react-simple-toasts](https://npm.io/package/react-simple-toasts.md) — 1.9K weekly downloads

## Recent versions

- 1.1.1 (latest) — 2015-01-29
- 1.1.0 — 2015-01-29
- 1.0.0 — 2015-01-26
- 0.1.1 — 2014-05-15
- 0.1.0 — 2014-05-12

## README

# ordered-ast-traverse.js
Simple but flexible lexically ordered AST traversal with pre and post visitors.

Same as [ast-traverse](https://github.com/olov/ast-traverse) but instead of
visiting everything that looks like an AST node, nodes are visited according to
[ordered-esprima-props](https://github.com/olov/ordered-esprima-props/blob/master/ordered-esprima-props.js).

The result is that the AST traversal happens in lexical order, i.e. an
AST-traversal in this order will visit nodes in increasing source code
position. It works with any Mozilla Parser API compatible AST, including those
generated by Esprima and Acorn, see
https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Parser_API

## Usage and examples
See [ast-traverse README](https://github.com/olov/ast-traverse/blob/master/README.md)

## License
`MIT`, see [LICENSE](LICENSE) file.

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