{"name":"@cucumber/gherkin-streams","version":"2.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":"16.0.0","@cucumber/message-streams":"1.0.0","@cucumber/gherkin":"19.0.0","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.0","_nodeVersion":"12.16.2","_npmVersion":"7.12.0","dist":{"integrity":"sha512-TzXygT7PeC6+hXzrZZUoKBu9h93PnfO77Yer/EHSL/IXDPfvf01qF77OJEeiejt546+TQ5emP9dLrrBxrLfOQw==","shasum":"c569f516c6d01abb6767e5f883f578ff4e66274a","tarball":"http://registry-npm.ywwl.com/@cucumber/gherkin-streams/download/@cucumber/gherkin-streams-2.0.0.tgz","fileCount":47,"unpackedSize":273800,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgoDpACRA9TVsSAnZWagAATQ8P/j2EnVFjYd+UkND0AN9L\nLHEIFumFXgCtDL5PYsExw9a8EKHoiqF/6b3BrCJ1CnCo9qiryNd0NeZoQ7l3\n4ixqahRHlnaOEWNUtDm3JFE4kn8YUHxkj4uqlL+owCKcfPEllzkCdto5Q4tz\nVTIX4552zYsnkTHeUWOTV9CJmFTcQZIutozl3Ga1YF6W/fcgxOlj3+Aekxhi\nslLCGpQ6a5T9cnxQu2kKnXfDK8/tZ7p0ZpoPBgGmDvLZGOOUNybgF96OEsDM\n5Zc21SYYpMMl+CqHQKKcgUcLVk3GGnDVUFVbGbr8ZyftlGJxjVf7rYJ/Y9Fv\n/HwHCToVclRqfrfXfZSsdOunL/dW9O+zUuqc4MJvI2ZykK+btM56KabHbwhW\nepxGFZu/AZxs4WPXffx2k7gEJPLu2kCKIgq3JOew+iRSQCY5iS17AAtP++eZ\nCOFPsoisk41iXarF4vu3RedoubN9d4efb3eHo0k4FeofaSaNw1uTF8+YkZuR\n6GHMWdWP4sBNLN7ttNikmpyPQsRur28tfqUKJgZ/xMrxWPF9zueNTiqvmzDn\n32SX4JBTyU05GPp0Edrz8Kbwh8wYo9Ate9CkssSrqA0jxsMZbmb5IwkI72Fw\nbyiGQa94LZJkI3GBFOz8H39TkhbCrly/covEB/wERL7JyH2KQQ8PAiiDfHn4\neViS\r\n=2t0F\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDpoN8hSVTXbShYueZRIiWx7mHEfGTzKhz0NlXQLGl7QAIhAMtDFYv9GQUO0E2uXfX5O3njIsGoiZ2jYuKQ2brSTWCM"}],"size":29654,"noattachment":false,"key":"/@cucumber/gherkin-streams/-/@cucumber/gherkin-streams-2.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_2.0.0_1621113408501_0.22958325452144646"},"_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":1621113408656,"_cnpm_publish_time":1621113408656,"dist-tags":{"latest":"7.0.1"}}