{"name":"@cucumber/gherkin-streams","version":"2.0.2","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":"^16.0.0","@cucumber/message-streams":"^2.0.0","@cucumber/gherkin":"^19.0.1","commander":"7.2.0","source-map-support":"0.5.19"},"devDependencies":{"@types/mocha":"8.2.2","@types/node":"15.3.0","mocha":"8.4.0","nyc":"15.1.0","typescript":"4.2.4"},"bugs":{"url":"https://github.com/cucumber/cucumber/issues"},"homepage":"https://github.com/cucumber/cucumber#readme","directories":{"test":"test"},"keywords":[],"_id":"@cucumber/gherkin-streams@2.0.2","_nodeVersion":"12.16.2","_npmVersion":"7.12.0","dist":{"integrity":"sha512-cKmXOBz4OwGlrHMBCc4qCC3KzLaqcEZ11nWWskIbv6jyfvlIRuM2OgEF6VLcNVewczifW1p6DrDj0OO+BeXocA==","shasum":"de09e279fe793e93ee83606376df291954fef83b","tarball":"http://registry-npm.ywwl.com/@cucumber/gherkin-streams/download/@cucumber/gherkin-streams-2.0.2.tgz","fileCount":47,"unpackedSize":274743,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgonLtCRA9TVsSAnZWagAApeYP/3fldbOzwkTQ7jgUd/Td\n8gNo6IdOiwWXv7Sl/d0nYcS/MQ/UkdPJrCyjp6oG+0N4s36xXRpXCuQd7xAH\n7aHhVqcbg3RTEan/UAfnx2MsPknuft8fWPrFTXDDcQVnWdiKvUsTgt4k7OwH\ncrUrJ4HMVzG/zp3XHMUM+ccqK3gHdJgK39iWrbz//u4VL5rVn6cOixj/lBzY\n4HqUT6sbSkOfKPDhplZ/4477bw0hJpDiXPZB6/zDloBxmq8ht2h6uK7sSjVv\nWRot6bKZKvZxHJrrlQ368Zf1E87uQuExe1YrPGaztduH7u26ovVlI2pP5wFx\nqVLyhyplx+hxcK+iZ/FLLbP9gS+cKlktTAUaolGvkmdRy2WY86utYbj437PD\n18NUGq7nvY+zeNfIgGQnk2U0TDFXMuKmut5JlqoVpEkXFUvpKdkujP0aRCzP\nVY+mAMHFlRhodhJmbPR1nFTF/0u1St7ddz5SNRNslKuvIicQdLk2M5rEzIM8\nNL50jmgIEH5YmRjnvLqpEgZFXY59sRBCEvkc7wq3DPz8/DOkZmCVfg8q6B8x\nPr3so3hGnzPvnntE2e3xWFVf9G2ErTGW8PoZ+e5m1g2NQt2OmTGd7Lp8xn8x\nhm6117E0TtoLw4HY+vT7VKHAD/BjL8y5CUfwsVXxxPtOp+ZWEfEjG/pc+xdy\nHz6h\r\n=HjKY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFzCFgLKz82AJ4QfSeu80Rg8MqLsDB1LAIftHck7mU6sAiAWfteuJeRIjo/2AFSNIENWnJcQGENBvZ+vZUZO7c8WwA=="}],"size":29746,"noattachment":false,"key":"/@cucumber/gherkin-streams/-/@cucumber/gherkin-streams-2.0.2.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_2.0.2_1621258989151_0.5567026437766645"},"_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":1621258989297,"_cnpm_publish_time":1621258989297,"dist-tags":{"latest":"7.0.1"}}