gherkin

Gherkin parser

Usage no npm install needed!

<script type="module">
  import gherkin from 'https://cdn.skypack.dev/gherkin';
</script>

README

Build Status

Gherkin parser/compiler for JavaScript. Please see Gherkin for details.

Usage

const gherkin = require('gherkin')

const options = {
  includeSource: true,
  includeGherkinDocument: true,
  includePickles: true,
}
const stream = gherkin.fromPaths(['features/hello.feature'])

// Pipe the stream to another stream that can read messages.
stream.pipe(...)