{"name":"@cucumber/gherkin-streams","version":"5.0.1","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.1.0","source-map-support":"0.5.21"},"devDependencies":{"@cucumber/gherkin":"^22.0.0","@cucumber/messages":"^17.1.1","@cucumber/message-streams":"^4.0.0","@types/mocha":"9.1.0","@types/node":"17.0.23","@typescript-eslint/eslint-plugin":"^5.17.0","@typescript-eslint/parser":"^5.17.0","eslint":"^8.12.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.2","nyc":"15.1.0","prettier":"^2.6.1","ts-node":"^10.7.0","typescript":"4.6.3"},"peerDependencies":{"@cucumber/gherkin":">=22.0.0","@cucumber/messages":">=17.1.1","@cucumber/message-streams":">=4.0.0"},"bugs":{"url":"https://github.com/cucumber/gherkin-streams/issues"},"homepage":"https://github.com/cucumber/gherkin-streams#readme","directories":{"test":"test"},"keywords":[],"gitHead":"200181ab8a8ae74260903d037e4ae76fb8c3418d","_id":"@cucumber/gherkin-streams@5.0.1","_nodeVersion":"17.8.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-/7VkIE/ASxIP/jd4Crlp4JHXqdNFxPGQokqWqsaCCiqBiu5qHoKMxcWNlp9njVL/n9yN4S08OmY3ZR8uC5x74Q==","shasum":"8c2142d295cd05644456be7282b4bd756c95c4cd","tarball":"http://registry-npm.ywwl.com/@cucumber/gherkin-streams/download/@cucumber/gherkin-streams-5.0.1.tgz","fileCount":55,"unpackedSize":66457,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAWVAf3WhT6b7jzwg3nT7fk8LKCXgQNRpNlYfbDX5pu0AiAo7EA8/7gc3/U9Iwtvs/SLYY68BVNAKWhfqPAtTHf/5Q=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRWBVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrTlg//Zb+Es5UOktKohDdKeRO2A6amMDO3pwgm4ro6G998oDCleHYI\r\nkiwMGAhl/MXwTD5Ih79qdt8ixOy1bu78/gXswTmqh/FYX/czo7Pl9UxbkPFX\r\nxz8VmXQUaKxsU3j3nF52zZth1wpvgH1OJD2L4NQWU408IxxIZNa/zKKGM5Zl\r\ndeM40czppAEIRD70NF/Tw0+205AAIevDoMAHGrYa9e3NvYy0+hpKPM9j99sE\r\nFe1l7hyl5Yg5YAc+YaA9gkVU28+05y7i3UdGOSztYOf5QGDbtFZrW2ZUe+dd\r\nL5PFGdaS+cGHY/loXN/xSEgEHfo9F4raMktEQeiFDDgFk3OImzXf03pgLYOG\r\nTwHHe/mgtwypkJEAduJ6jAuUIlV7axNAIl+TJ+76QYAL6hukr9sKCl2ac2Y4\r\nGGT2A/mASo/oS3ePwOwDv8NlFUjMDlmGYS62obFVGLUPd9LDayyU3/6cmOva\r\nUpidDL9g7LKLE8M7jUc2soZCL0G6Saf86vzpGvLvi/D4migh2UXz/Jni8NX6\r\n+1iICG4fcLKAnX4w1i737rHMLHQCD2JbsIIopsiVzp31/g8EpwKl+v1DsuZi\r\nL1+nPvXfFhnCQZbVYals+VNyqj9Tyl/VDjipetZrNtjrc4j2AMJ/d+RWXdR1\r\nekyqgzqUtg9kOFii12npJIC4lj0DPfIV4cE=\r\n=mj9X\r\n-----END PGP SIGNATURE-----\r\n","size":20355,"noattachment":false,"key":"/@cucumber/gherkin-streams/-/@cucumber/gherkin-streams-5.0.1.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.1_1648713813029_0.39082369075819656"},"_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":1648713813238,"_cnpm_publish_time":1648713813238,"dist-tags":{"latest":"7.0.1"}}