AST parser and generator for Firebase Firestore and Storage security rules. Current stable version is 0.1.5, with irregular releases. Unlike general-purpose parsers, Firetree is purpose-built for Firebase security rules, supporting both parsing rules into an AST and generating rules from an AST. It provides a library interface for programmatic use and a CLI binary.
npm install firetreeNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Parses a Firestore rules file into an AST and then generates rules from that AST.
Pin to exact version and regularly check for breaking changes.
Always call setupContext() before parse or generate.
Provide either a filePath or content string in the options object.
Use 'npm install -g firetree' instead.
Pass an options object with either filePath or content property.
Use 'firetree parse -f <file>' or 'firetree generate -f <file>'
No dependency data recorded yet.