JSPM

  • Created
  • Published
  • Downloads 3917583
  • Score
    100M100P100Q217793F
  • License MIT

Gherkin parser

Package Exports

  • @cucumber/gherkin
  • @cucumber/gherkin/dist/src/stream/generateMessages

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@cucumber/gherkin) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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(...)