gherkin-ast
    TypeScript icon, indicating that this package has built-in type declarations

    3.2.1 • Public • Published

    gherkin-ast

    Downloads Version@npm Version@git CI Docs

    Models for Gherkin feature files

    AST

    The API provides types to be able to handle different parts of Gherkin feature files.

    In TypeScript:

    import {Feature, Scenario /*, Background, ... */} from "gherkin-ast";

    OR in JavaScript:

    const {Feature, Scenario /*, Background, ... */} = require("gherkin-ast");
    const feature = new Feature("Feature", "Displaying documents");
    feature.elements.push(new Scenario("Scenario", "Opening a document"));
    // ...

    For detailed documentation see the TypeDocs documentation.

    This package uses debug for logging.

    NOTE parse functions only support AST provided by the parser of gherkin@6.

    Install

    npm i gherkin-ast

    DownloadsWeekly Downloads

    8,131

    Version

    3.2.1

    License

    MIT

    Unpacked Size

    64.6 kB

    Total Files

    60

    Last publish

    Collaborators

    • szikszail
    • judit-nahaj
    • sorosz89