bash-parser is a JavaScript library designed to parse bash source code and generate an Abstract Syntax Tree (AST). The current stable version is 0.5.0, which was last published in June 2017, indicating the project is currently abandoned. Its development aimed to provide a standard-compliant parser, initially forked from `js-shell-parse` and significantly rewritten to leverage a `jison` grammar for robust parsing. This library was intended to serve as the core parsing engine for other projects like `cash` and `nsh`, offering a programmatic way to analyze and manipulate bash scripts. Due to its abandonment, there is no ongoing release cadence, and users should be aware that no further updates, bug fixes, or security patches will be provided.
npm install bash-parserVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to import the `parse` function and convert simple and complex bash commands into an AST.
Review the new AST documentation (if available) and refactor code to match the updated node types and structure.
Consult the 'mode' documentation (if available) to understand how parsing behavior might have changed and adjust usage accordingly.
Consider migrating to actively maintained alternatives for parsing bash, or be prepared to fork and maintain the library yourself.
Thoroughly test existing integrations when updating to 0.5.0, particularly if your project indirectly interacted with sub-packages that might have been part of the previous monorepo structure.
No dependency data recorded yet.