{"name":"@cucumber/gherkin-streams","version":"5.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/gherkin-streams.git"},"author":{"name":"Cucumber Limited","email":"cukes@googlegroups.com"},"license":"MIT","scripts":{"test":"mocha","build":"tsc --build tsconfig.build.json","prepublishOnly":"npm run build","eslint:fix":"eslint --ext ts,tsx --max-warnings 0 --fix src test","eslint":"eslint --ext ts,tsx --max-warnings 0 src test"},"dependencies":{"commander":"9.0.0","source-map-support":"0.5.21"},"devDependencies":{"@cucumber/gherkin":"^22.0.0","@types/mocha":"9.1.0","@types/node":"17.0.21","@typescript-eslint/eslint-plugin":"^5.13.0","@typescript-eslint/parser":"^5.13.0","eslint":"^8.10.0","eslint-config-prettier":"^8.5.0","eslint-plugin-import":"^2.25.4","eslint-plugin-node":"^11.1.0","eslint-plugin-prettier":"^4.0.0","eslint-plugin-simple-import-sort":"^7.0.0","mocha":"9.2.1","nyc":"15.1.0","prettier":"^2.5.1","ts-node":"^10.7.0","tsconfig-paths":"^3.13.0","typescript":"4.6.2"},"peerDependencies":{"@cucumber/gherkin":"^22.0.0","@cucumber/messages":"^17.1.1","@cucumber/message-streams":"^3.0.0"},"bugs":{"url":"https://github.com/cucumber/gherkin-streams/issues"},"homepage":"https://github.com/cucumber/gherkin-streams#readme","directories":{"test":"test"},"keywords":[],"gitHead":"84979110b912f73540ad6c5aa4cb49ff8e6ef7a5","_id":"@cucumber/gherkin-streams@5.0.0","_nodeVersion":"17.6.0","_npmVersion":"8.5.1","dist":{"integrity":"sha512-rqRFqqUXpMGQOAKlj+RWv/OVqvsMRSo4ZdZtRandEUppgm8pmxr5nQXC3wwkerqrsuVMRYu+orK5p7xNDuIHng==","shasum":"f58c26aede6bb3e5904fe6b6a78d819eb5383af7","tarball":"http://registry-npm.ywwl.com/@cucumber/gherkin-streams/download/@cucumber/gherkin-streams-5.0.0.tgz","fileCount":54,"unpackedSize":65045,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiJc4AACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp3TQ//XTIoAmEeXDudPZanhrbdl5Wz82bIzP6hmB3LCXmFgDhRJR7k\r\nrz06ZS8ASzbqbhNdkDu77zqsSV/j9RAzkqnQySX956p6rRZEnlJ6qeu5TSYB\r\n4UFQE/vNnHFz+JqGRd1LurwBC3Iarp3XFqMqTLeqSVMAL5exVHCYdWuS+hvp\r\nTUuaQvg/B6FCbzSFHpmXoPTsb/gjA9CJ0qEkxBQWRphu/4W7fUkNkoXRFCbH\r\n9MpxCnUEcaeChlsW9YOArt+t5gIHA8k04M7PXoCZqqzaDK8vQW0TAnqpilD9\r\nTFYp/+e310+K3s0KXo46/Fw1R/4uio7nQYWJymNEhPZadqaZHrpcjtqTy6tj\r\nFuQfUccEx8vn2hBlpvNHCoRK7rplLDliyibKba5753vU3l+PmE22YZttLzrS\r\nb1CWgNjqqZFV95oP0NGNegbLnt3cuESVy94H1xyDJK+CW5P9sMEk/IbEPra5\r\n1YBll8S6LZQZeLxW69OpBEvqqU1bbB5Fi7OH+FGyk/PgjRqbjMOWlPcsmkd+\r\ndUcgev875boXyN3J+nZinPL/2butlxc+2kRPsTa1Z2WMm4laizpGRYptmIbI\r\nI/IPyJWO7Rfv9eNU/knRnCaEvgq8tLrHDUjEaRefVuzplTqq+vU77MvlmIor\r\nA55w5tSoaZ1VE1DFDlAuoIVRSRdkKoUJNDU=\r\n=Xfmi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDETSbIGPU/Gu4j1Yq5FXF0BU8kNk3K4s2ZqyWICltR4AiBHl8ccLcK4wPfI/qz87VT+Fh8w3ET9W90LiRO80cvMIw=="}],"size":20058,"noattachment":false,"key":"/@cucumber/gherkin-streams/-/@cucumber/gherkin-streams-5.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_5.0.0_1646644736808_0.5026953071577149"},"_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":1646644736967,"_cnpm_publish_time":1646644736967,"dist-tags":{"latest":"7.0.1"}}