Gherkin Formatter

JSON →
library 1.2.2 ·javascript
verified Jun 4, 2026

A TypeScript library for formatting Gherkin AST models back into Gherkin feature file strings. Current stable version is 1.2.2, released under the Gherking organization. It provides a format() function that takes a Document AST node (from gherkin-ast) and optional FormatConfig options to control tag layout, line breaks, indentation, and compact output. Key differentiator: it is part of the gherking ecosystem, designed to work with gherkin-ast and gherkin-io for parsing, manipulating, and writing Gherkin documents programmatically.