{"name":"@cucumber/gherkin-streams","version":"4.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":"^17.1.0","@cucumber/message-streams":"^3.0.0","@cucumber/gherkin":"^21.0.0","commander":"8.1.0","source-map-support":"0.5.19"},"devDependencies":{"@types/mocha":"9.0.0","@types/node":"14.17.14","mocha":"9.1.1","nyc":"15.1.0","typescript":"4.4.2"},"bugs":{"url":"https://github.com/cucumber/cucumber/issues"},"homepage":"https://github.com/cucumber/cucumber#readme","directories":{"test":"test"},"keywords":[],"_id":"@cucumber/gherkin-streams@4.0.0","_nodeVersion":"14.17.3","_npmVersion":"7.20.6","dist":{"integrity":"sha512-b/guGNeuxr3ghoJOK47QpLhwa2BOdRq+cs2hBYulMLPTiVfwvRBiZlq7P6xdjR9dIpUKBSpzYR6NwaLMgV5DTg==","shasum":"719187269fc3b2243aacbb9b964c98179b44ee66","tarball":"http://registry-npm.ywwl.com/@cucumber/gherkin-streams/download/@cucumber/gherkin-streams-4.0.0.tgz","fileCount":47,"unpackedSize":71480,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhL/4mCRA9TVsSAnZWagAAbxcP/A7pRI68+xoy1KA12ojZ\nsi0O44usXPzW/5I9Pkrg1B+3gCM/bns/gB1YqWpmDq6Dn078CMv2rtHHXdkl\ng90xAcNOaSP7mLwSJ605IrmGi51JwIhKphqkqAprPtuv7T1iJtMZMOfAs/KS\nJVRwwXFuqlMBZcoLJ3YKT6R0uIjoYgaOMKjvNikEBsjvbf/Xv7vzHQyvLcRr\nLKhboUIydn4keCjGYt8hiwELGP/PI7lNbmahL5hwVdejF+83vM+04CUFhpBw\ngsh0rSGrD0HyNQmXZOrzWV02MoivyagJRPlyv4QrfOZK1lomqXEsQp7Uhc11\ndoKIQ9btCO/tKresNImEemgs6Ow+MNHLQ74507v84ZXKnYgUUcQh6Sr3ku3V\ntY1UxOInAFlUkyxSD3KSCEkFzn4DxvtRRZHLsIxeBeKx+ZwDVXrPpaVlXQDI\nzV+oGdC28pDhkvluhZCFlWcieSwCEqmpvBPwEvlpTmAfv2FOINW7zm30CB11\nbiHgGAnnxi3KKYBSnuSE2Ied79nu11cKx4u3Ox1O2k/2IbX7SZD0iljMAgJA\nlFfdHLtM0OLM1Tbx4AQWrBSgIuaDSwb8jXbJbfQZ69qr7BT6Gf4VszeN5qv1\nuwQf9Mf3SzgFTefdqC3EvVBy0JZzQWY4grihliHlJiJ+wNCvyBkcrPhNoEo8\nURmN\r\n=RK+X\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDHDPb6tL73tNkqXATKwNwBSGOSs9H4rdi+BAHTVlVyQgIhALSiC0bn36fQMSu45qZHt3wQBfiJ2/hNZPivjTW5CAe4"}],"size":22660,"noattachment":false,"key":"/@cucumber/gherkin-streams/-/@cucumber/gherkin-streams-4.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_4.0.0_1630535206723_0.8376838247383009"},"_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":1630535206846,"_cnpm_publish_time":1630535206846,"dist-tags":{"latest":"7.0.1"}}