{"name":"@cucumber/gherkin-streams","version":"1.0.0","description":"Streams for reading Gherkin parser output","main":"dist/src/index.js","types":"dist/src/index.d.ts","bin":{"gherkin-javascript":"bin/gherkin"},"repository":{"type":"git","url":"git://github.com/cucumber/cucumber.git"},"author":{"name":"Cucumber Limited","email":"cukes@googlegroups.com"},"license":"MIT","scripts":{"test":"mocha","prepublishOnly":"tsc --build tsconfig.build.json"},"dependencies":{"@cucumber/messages":"^15.0.0","@cucumber/message-streams":"^1.0.0","@cucumber/gherkin":"^18.0.0","commander":"^7.2.0","protobufjs":"^6.10.2","source-map-support":"^0.5.19"},"devDependencies":{"@types/mocha":"^8.2.2","@types/node":"^14.14.35","mocha":"^8.3.2","nyc":"^15.1.0","typescript":"^4.2.3"},"bugs":{"url":"https://github.com/cucumber/cucumber/issues"},"homepage":"https://github.com/cucumber/cucumber#readme","directories":{"test":"test"},"keywords":[],"_id":"@cucumber/gherkin-streams@1.0.0","_nodeVersion":"12.16.2","_npmVersion":"7.6.1","dist":{"integrity":"sha512-ZGUvkwj8DnMozii+8YqWtiWuKqU+Opt50dWVeJzv2e+4GDh0P1Nc04RGMZkFf8WTl2sgBJq5waPUKCQVPaw6iQ==","shasum":"e4938ba130fceec8ebc641298557c2a21dcabd5f","tarball":"http://registry-npm.ywwl.com/@cucumber/gherkin-streams/download/@cucumber/gherkin-streams-1.0.0.tgz","fileCount":46,"unpackedSize":162481,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgW0oFCRA9TVsSAnZWagAA7m4P/2a7GY0o9BP3k1ZKCjKq\njVcSqWizp1W3vWXQfUNuv8ZbsJgDU8FFJGRuC/zGePbDniHj9n/OM0poY2iE\nfI/oeCpXsaKIniCNkeevTUugmlFLtMJn8wjHfi25xnRpNbf85tIm6vluHlS/\nCdijz4mRQFxnMHOxGlqz/2nt3FRt8+eqombs+J5JQLkxwB82Ko1uMow8rIBu\nZTdkeUbmg532VL1Tdaj+Lo8PZYnmodi0XKd/6nMj7ml20HcP+RHLXVvPacFn\nzK22UqR4jRbuSLCQ51LtaGaxdgzhC7UJAkV/lnvGNIn84JxzJz3mDgQ6JzAZ\n+X+yvQvFB9osGhuoLXrZ9yDRoBsx//qa24NpzlMIEyXlVFEUEyfsY3AZAVZM\naLbvsAYx15Dmlj+F962gDFfRKLqaiUgO3s5Njk8vx4khWlIbbw2xjM7adY4A\ngxbFyPnP7LF+Nq3nkLYj2xWdY3WY8EFdGCR0BT0uULNW0FW23L9JfP34JeM9\nmiGuuuOXZy/hnQdmAxsNlNLjrRF40qWScV6U4xACOsITDOIyEMdwZ6gTmdx4\nALWhuH10EBMbKGluoTrIbkCMRThErA6eYlcDtL+JjOsWPOndVp6EQi/vp/rw\nISR0lG4RE5vZTeLKiZjjPtvsbwfFP3dn30bDyZ4cgGHKslr9nObidF3s6an8\n6pGj\r\n=ogQa\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICBEmVJyeaZvbuymk7NyqQwO37HSmeNHcHPSyaS8ud0HAiAYlRo+vYKUXCiVJMK9ZP7LFSMorC8jyv8e8CQ6SIV/mA=="}],"size":25728,"noattachment":false,"key":"/@cucumber/gherkin-streams/-/@cucumber/gherkin-streams-1.0.0.tgz"},"_npmUser":{"name":"cukebot","email":"cukebot@cucumber.io"},"maintainers":[{"name":"aslakhellesoy","email":"aslak.hellesoy@gmail.com"},{"name":"cukebot","email":"cukebot@cucumber.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gherkin-streams_1.0.0_1616595460687_0.035355930730865515"},"_hasShrinkwrap":false,"readme":"# Gherkin Streams\n\nThis module contains utilities to use the Gherkin library with streams.\n\n## Installation\n\n`gherkin-streams` has 3 peer dependencies: `@cucumber/gherkin`, `@cucumber/messages`\nand `@cucumber/message-streams`.\n\nYou need to have `@cucumber/gherkin` and`@cucumber/message-streams` in your dependencies,\n`@cucumber/messages` is actually installed automatically with `@cucumber/gherkin`.\n\n    npm install @cucumber/gherkin-streams @cucumber/gherkin @cucumber/message-streams\n\n## Usage\n\n```javascript\nconst { GherkinStreams } = require('@cucumber/gherkin-streams')\n\nconst options = {\n  includeSource: true,\n  includeGherkinDocument: true,\n  includePickles: true,\n}\nconst stream = GherkinStreams.fromPaths(['features/hello.feature'])\n\n// Pipe the stream to another stream that can read messages.\nstream.pipe(...)\n```\n\n### Shortening URIs with `relativeTo`\n\nYou can include `relativeTo` option to avoid emitting longer or absolute URIs, instead making them only relative to the current working directory (or whatever makes sense for your use case):\n\n```javascript\nconst { GherkinStreams } = require('@cucumber/gherkin-streams')\n\n// imagine `discoverPaths()` is a function that returns absolute paths\nconst paths = discoverPaths();\nconst options = {\n  includeSource: true,\n  includeGherkinDocument: true,\n  includePickles: true,\n  relativeTo: process.cwd()\n}\nconst stream = GherkinStreams.fromPaths(paths)\n\n// Pipe the stream to another stream that can read messages.\nstream.pipe(...)\n```\n","publish_time":1616595460898,"_cnpm_publish_time":1616595460898,"dist-tags":{"latest":"7.0.1"}}