{"name":"@cucumber/gherkin-streams","version":"3.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.0.0","@cucumber/message-streams":"^3.0.0","@cucumber/gherkin":"^20.0.0","commander":"8.0.0","source-map-support":"0.5.19"},"devDependencies":{"@types/mocha":"8.2.3","@types/node":"14.17.5","mocha":"9.0.2","nyc":"15.1.0","typescript":"4.3.5"},"bugs":{"url":"https://github.com/cucumber/cucumber/issues"},"homepage":"https://github.com/cucumber/cucumber#readme","directories":{"test":"test"},"keywords":[],"_id":"@cucumber/gherkin-streams@3.0.0","_nodeVersion":"12.22.1","_npmVersion":"7.17.0","dist":{"integrity":"sha512-vdTfSJx4z3Ju2vtresEM930chq3DVxnuQ1FFCI69m2Q83sa2mL8VEFvJ5fwlF7fY/fqLwop04W6B7lCkSZq7fg==","shasum":"cf10b90a596e557b9d21e905ac64156783e04d9c","tarball":"http://registry-npm.ywwl.com/@cucumber/gherkin-streams/download/@cucumber/gherkin-streams-3.0.0.tgz","fileCount":47,"unpackedSize":71412,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg5xeVCRA9TVsSAnZWagAAMEQP/i3kn7hiRoFmDo/VfPGy\n4o4p3+twON+lxLPVYYDPVqee5o+B2WvLfiZZomYZZCnnHrPCowehCigHARNF\nMl7QE5qEF6RSQRBOmrugbQFIqi91wjA9+Jw8d9ya2PGrWmrX3lzrXjQzrbG2\nDEz+3EGROa++BoKrgztV4drwi28BCKRukmXS6H/Dt34S4ILbwLJy/RVpL7Qy\nQ/vcxWeXLVf++YhGrCmLtBNEIYKoXrtFICb2Q2TDIOOHyTZ2DvgfJN/esCIz\n9cLESh6HAjHB4kLa1hbELYcvE+ynJ3tGyUrrM95Jb08tQeSnmjlu5jACrYec\nQUy5CC2uEIxOGKPCnqXVvDGucOza2tkGvY8mDSnKs7xdU8aBhdRXdHN6SK4g\nn64i/jczczRjHeLWgyo+n2R/9YQ3lmBBr2Gf5VMTQIFlmK2fvXWA9UqXT+w1\nsMme2LxTrMeIf8cVuiZm6HeivAt2omrASSMhUpe4Rwfy4EMQ3vOEefL2p/d1\nxufTLabqX343/7/EXT7JuhpwslEMjlyL0XXR1VGwXnQqSEy4n959ugtAVLdf\nfdS2LhkHMpEqMPi0r3ya6proTK6kNfIadBKis4rti+P82og6uqdE2xZOYFXY\nBgYq29CJ2RaXUEnDuO/RhMVOcx5nwUqUfFvSFkjUU548ixFkalnty2Gjr/S9\npZcp\r\n=yxQZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCb9x+ojhsnlyyjdvqek90paCArdT+tqq/+52VQ74VPbQIhANWoyNBBnu3ksDzxUgcvNvmfkJIlT4mH4pcoF/X+IAmn"}],"size":22626,"noattachment":false,"key":"/@cucumber/gherkin-streams/-/@cucumber/gherkin-streams-3.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_3.0.0_1625757589191_0.297283592820867"},"_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":1625757589318,"_cnpm_publish_time":1625757589318,"dist-tags":{"latest":"7.0.1"}}