node package manager
We need your input. Help make JavaScript better: Take the 2017 JavaScript Ecosystem survey »

shell-parse

shell-parse

Parse bash scripts into AST's

Synopsis

module.exports := (String) => Object

(better synopsis will come after real tests)

Description

This thing parses strings containing bash scripts into an AST that you might execute using an interpreter or something. The AST structure is still in flux, so you probably don't want to build on this just yet!

Examples

See the tests for all the things that can be parsed.

License

MIT