Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ordered-ast-traverse

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ordered-ast-traverse

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

  • 0.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
103K
decreased by-1.6%
Maintainers
1
Weekly downloads
 
Created
Source

ordered-ast-traverse.js

Simple but flexible lexically ordered AST traversal with pre and post visitors.

Same as ast-traverse but instead of visiting everything that looks like an AST node, nodes are visited according to ordered-esprima-props.

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. Tested with Esprima but should work for any Mozilla Parser API compatible AST, see https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Parser_API

Usage and examples

See ast-traverse README

License

MIT, see LICENSE file.

Keywords

FAQs

Package last updated on 15 May 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc