{"name":"@cucumber/pretty-formatter","version":"1.0.0-alpha.0","license":"MIT","_id":"@cucumber/pretty-formatter@1.0.0-alpha.0","maintainers":[{"name":"aslakhellesoy","email":"aslak.hellesoy@gmail.com"},{"name":"cukebot","email":"cukebot@cucumber.io"}],"contributors":[{"name":"Ilya Kozhevnikov","email":"git@kozhevnikov.com"},{"name":"Julien Biezemans","email":"jb@jbpros.com"}],"homepage":"https://github.com/jbpros/cucumber-pretty-formatter#readme","bugs":{"url":"https://github.com/jbpros/cucumber-pretty-formatter/issues"},"dist":{"shasum":"51c222c54e7f565d1d0fb02305a092812cb2f273","tarball":"http://registry-npm.ywwl.com/@cucumber/pretty-formatter/download/@cucumber/pretty-formatter-1.0.0-alpha.0.tgz","fileCount":20,"integrity":"sha512-tfNn8RB4VrGQnVW2jub77iepD5v7YxJFXuW8i/rCbWK7JTWm3Cfb04GcAdtYmLpDnZDGAu1ASdetiafpp1ngjw==","signatures":[{"sig":"MEUCIQDR7XTANbSTtBJevtg168yyM8CzuIO8AbUpx8FMrDL7ogIgAQeZ3rz8ZPTunKSIIWzKqkADYaLqx3YGYGG/peqfPzk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40733,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf94osCRA9TVsSAnZWagAAOFIQAIUWc2Orf/zZE67Fpteh\n5MKLM/Rctq3sSxEzAdEb8fMZDnVaSUTEphP5lS4t0tFtj6xRMAK9xkp/f0zk\nXKvMVm3oozLM/IP+mgZ12ony5RtYPddf/U9CxAOcsSxjYSSPqW6whiEgrTjX\nHnoqxMPOO5GyeEChj/kniYdN+ysvvVLlYHNWyOYKPp5/XT3yIhpCRtooS+QW\nEjqFFFTGJJHFX+hmM2Uf8KGiJthYHDPRd4Y1nxoLvIBtU1cCUoWE4SrIbHLX\nKTf72uJXDEACa4CFp9PpX2ojAThqCd2EnARWbxm6obLaJHj8vrDc5UBZGaNk\nuvSvhGLS66ngkB6gpz2XdeGSH/av+DbIYKtHMG/RLXJJDlYI1eN5mT+GeYCA\ndWPWBTFQnmo5nmLyBsZTbHHePMjNsyDFE/x3lbMrDFWKHRqMG3S7oVZNkQXY\nSnQEkfesCTiKzDshHNFNXVoc00EY677SG/nRVe6AO7akZo43DNqsIzrmT14B\n9z16sjh3uYhWIavMkKndYqLEG2iYa/nOcltls5ujvyqAwwvGnNjbYmzH4F9M\npK2xX2daqkOonTmb2gJS3z0QNhgv7mWqRZj5qLWc6WCtIwKay0agoofifD7V\nylOMYv/rgUfsBT69VLWpGmc+VsvOX8vPK9rgCNkhjGtDxwtWQmOcezbqXmaO\n9Fcw\r\n=Af7k\r\n-----END PGP SIGNATURE-----\r\n","size":11129,"noattachment":false,"key":"/@cucumber/pretty-formatter/-/@cucumber/pretty-formatter-1.0.0-alpha.0.tgz"},"main":"lib/src/index.js","types":"lib/src/index.d.ts","gitHead":"c93ecd4733122e1e8553fb5e856ec72692493e79","scripts":{"lint":"eslint \"src/**/*.ts\" \"test/**/*.ts\"","test":"npm run build && npm run test:mocha","build":"tsc -p tsconfig.node.json","lint:fix":"eslint --fix \"src/**/*.ts\" \"test/**/*.ts\"","test:mocha":"mocha","build:clean":"rm -rf lib","build:watch":"tsc -p tsconfig.node.json --watch","test:nobuild":"npm run test:mocha","build:release":"npm run build && npm run test:nobuild && npm run build:clean:tests","test:mocha:wip":"mocha -g wip","build:clean:tests":"find lib/src -type f -name '*.spec.*' -exec rm {} +","update-dependencies":"npx npm-check-updates --upgrade --dep prod,dev,optional,bundle","test:mocha:wip:watch":"mocha -w -g wip"},"_npmUser":{"name":"cukebot","email":"cukebot@cucumber.io"},"repository":{"url":"git+https://github.com/jbpros/cucumber-pretty-formatter.git","type":"git"},"_npmVersion":"6.14.10","description":"Official Cucumber.js Pretty Formatter","directories":{"lib":"lib"},"_nodeVersion":"12.16.2","dependencies":{"figures":"^3.2.0","ts-dedent":"^2.0.0","cli-table3":"^0.6.0","ansi-styles":"^5.0.0","@cucumber/messages":"^13.2.1"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^8.2.1","eslint":"^7.17.0","should":"^13.2.3","prettier":"^2.2.1","typescript":"^4.1.3","@types/node":"^14.14.20","@types/mocha":"^8.2.0","@cucumber/cucumber":"^7.0.0","eslint-plugin-import":"^2.22.1","eslint-config-prettier":"^7.1.0","eslint-plugin-prettier":"^3.3.1","@typescript-eslint/parser":"^4.12.0","@typescript-eslint/eslint-plugin":"^4.12.0"},"peerDependencies":{"@cucumber/cucumber":">=7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/pretty-formatter_1.0.0-alpha.0_1610058284434_0.40576103470164826","host":"s3://npm-registry-packages"},"readme":"<h1 align=\"center\">\n  <img alt=\"\" width=\"75\" src=\"https://github.com/cucumber.png\"/>\n  <br>\n  pretty-formatter\n</h1>\n<p align=\"center\">\n  <b>Rich formatting of Cucumber progress and results for the terminal</b>\n</p>\n\n<p align=\"center\">\n  <a href=\"https://www.npmjs.com/package/@cucumber/pretty-formatter\" style=\"text-decoration: none\"><img src=\"https://img.shields.io/npm/v/@cucumber/pretty-formatter?style=flat&color=dark-green\" alt=\"Latest version on npm\"></a>\n  <a href=\"https://github.com/cucumber/pretty-formatter/actions\" style=\"text-decoration: none\"><img src=\"https://github.com/cucumber/pretty-formatter/actions/workflows/test-javascript.yaml/badge.svg\" alt=\"Build status\"></a>\n</p>\n\n![Example output of the pretty formatting, showing the different colors used](../screenshots/all-statuses.cucumber.pretty.png)\n\n## Usage\n\nThis package is used internally in `@cucumber/cucumber` to provide the `summary`, `progress` and `pretty` formatters; you don't need to install or manage it yourself.\nFor usage, see https://github.com/cucumber/cucumber-js/blob/main/docs/formatters.md.\n\nYou can use these low-level classes to provide formatting for a different implementation of Cucumber.\n\n### SummaryPrinter\n\nPrints a summary of test results including non-passing scenarios, statistics, and snippets.\n\n```typescript\nimport { SummaryPrinter } from '@cucumber/pretty-formatter'\n\nconst printer = new SummaryPrinter()\n\n// each time a message is emitted\nprinter.update(envelope)\n```\n\nCan also be used to summarise a test run that already happened, with a pre-populated `Query` object:\n\n```typescript\nimport { Query } from '@cucumber/query'\nimport { SummaryPrinter } from '@cucumber/pretty-formatter'\n\nconst query = new Query()\n\n// each time a message is emitted\nquery.update(envelope)\n\n// later\nSummaryPrinter.summarise(query)\n```\n\n### ProgressPrinter\n\nPrints test progress as single-character status indicators.\n\n```typescript\nimport { ProgressPrinter } from '@cucumber/pretty-formatter'\n\nconst printer = new ProgressPrinter()\n\n// each time a message is emitted\nprinter.update(envelope)\n```\n\n### PrettyPrinter\n\nPrints test progress in a prettified Gherkin-style format.\n\n```typescript\nimport { PrettyPrinter } from '@cucumber/pretty-formatter'\n\nconst printer = new PrettyPrinter()\n\n// each time a message is emitted\nprinter.update(envelope)\n```\n\n### Themes\n\nHere's the schema for a theme:\n\n```ts\ninterface Theme {\n    attachment?: Style\n    dataTable?: {\n        all?: Style\n        border?: Style\n        content?: Style\n    }\n    docString?: {\n        all?: Style\n        content?: Style\n        delimiter?: Style\n        mediaType?: Style\n    }\n    feature?: {\n        all?: Style\n        keyword?: Style\n        name?: Style\n    }\n    location?: Style\n    rule?: {\n        all?: Style\n        keyword?: Style\n        name?: Style\n    }\n    scenario?: {\n        all?: Style\n        keyword?: Style\n        name?: Style\n    }\n    status?: {\n        all?: Partial<Record<TestStepResultStatus, Style>>\n        icon?: Partial<Record<TestStepResultStatus, string>>\n        progress?: Partial<Record<TestStepResultStatus, string>>\n    }\n    step?: {\n        argument?: Style\n        keyword?: Style\n        text?: Style\n    }\n    tag?: Style\n    symbol?: {\n        bullet?: string\n    }\n}\n\nenum TestStepResultStatus {\n    UNKNOWN = \"UNKNOWN\",\n    PASSED = \"PASSED\",\n    SKIPPED = \"SKIPPED\",\n    PENDING = \"PENDING\",\n    UNDEFINED = \"UNDEFINED\",\n    AMBIGUOUS = \"AMBIGUOUS\",\n    FAILED = \"FAILED\"\n}\n```\n\n`Style` is any [Node.js supported modifier](https://nodejs.org/api/util.html#modifiers) or an array of them.\n\nSee the [default theme](./src/theme.ts) for a good example. It's exported as `CUCUMBER_THEME`, so you can clone and extend it if you'd like.","publish_time":1610058284544,"_cnpm_publish_time":1610058284544,"dist-tags":{"latest":"4.1.0"}}