{"name":"@commitlint/format","version":"12.0.1","description":"Format commitlint reports","main":"lib/index.js","types":"lib/index.d.ts","scripts":{"deps":"dep-check","pkg":"pkg-check --skip-import"},"engines":{"node":">=v10"},"repository":{"type":"git","url":"git+https://github.com/conventional-changelog/commitlint.git"},"bugs":{"url":"https://github.com/conventional-changelog/commitlint/issues"},"homepage":"https://github.com/conventional-changelog/commitlint#readme","keywords":["conventional-changelog","commitlint","library","core"],"author":{"name":"Mario Nebl","email":"hello@herebecode.com"},"license":"MIT","devDependencies":{"@commitlint/utils":"^12.0.1"},"dependencies":{"@commitlint/types":"^12.0.1","chalk":"^4.0.0"},"gitHead":"610d2911bea066c87700155de3bf5bbecf266a8d","readme":"> Format commitlint reports\n\n# @commitlint/format\n\n## Getting started\n\n```shell\nnpm install --save @commitlint/format\n```\n\n## Example\n\n```js\nconst format = require('@commitlint/format');\n\nconst output = format(\n  {\n    valid: false,\n    errorCount: 1,\n    warningCount: 1,\n    results: [\n      {\n        valid: false,\n        input: 'some: commit message',\n        errors: [\n          {\n            valid: false,\n            level: 2,\n            name: 'some-error',\n            message: 'This will show up red as it has level 2',\n          },\n        ],\n        warnings: [\n          {\n            valid: true,\n            level: 0,\n            name: 'some-hint',\n            message: 'This will not show up as it has level 0',\n          },\n          {\n            valid: false,\n            level: 1,\n            name: 'some-warning',\n            message: 'This will show up yellow as it has level 1',\n          },\n        ],\n      },\n    ],\n  },\n  {\n    color: false,\n  }\n);\n\nprocess.stdout.write(output);\n\n/* => [\n  '✖   This will show up red as it has level 2 [some-error]',\n  '    This will not show up as it has level 0 [some-hint]',\n  '⚠   This will show up yellow as it has level 1 [some-warning]',\n  '✖   found 1 problems, 2 warnings'\n] */\n```\n\nConsult [docs/api](https://conventional-changelog.github.io/commitlint/#/reference-api) for comprehensive documentation.\n","readmeFilename":"README.md","_id":"@commitlint/format@12.0.1","_nodeVersion":"14.15.5","_npmVersion":"lerna/3.22.1/node@v14.15.5+x64 (darwin)","dist":{"integrity":"sha512-rF79ipAxR8yFzPzG5tRoEZ//MRkyxCXj4JhpEjtdaCMBAXMssI8uazn3e5D8z4UFgSDe9qOnL0OmQvql7HTMoA==","shasum":"5164e5a9e8592c1983482cbd71e7ea86a645ff1b","tarball":"http://registry-npm.ywwl.com/@commitlint/format/download/@commitlint/format-12.0.1.tgz","fileCount":12,"unpackedSize":19579,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgNGVQCRA9TVsSAnZWagAAljoP/AjgJDlou8CoK710CN74\nO36b1+jj3l43vFdJjJ6cJy+KKHsIaqS2ZHYm7P9ISgbmSTzXFQpn7SlWIi0C\nvRqmxsEaFMaaevjR4Xk2J00ohcPqajy8Xag83Gn4UsPmY54gJP73L4HwkvA8\njLHhJC2iLHGnpvqP0YOqA+l+UFTgaYWYLeuDMVSj33DUPJ4pa2uMDutHd77k\nD2LlbA+1TRLVn/aQVeWJrWa0RH1wAibQMVYUM9IhIWSdkbviL2XELSrysjnd\nE209MDITPVeUbmIhrP1xzdBzxfS1r9batqKBARI2rptTEKq5TQJTUHcwyc0f\nDANS1RJh6CAlVuUcT/qb7Fyvy+m6b3SxwbrKECWdMoPPUUGcnAFxNrfNU7Vb\nGtSWk0Y9RzUKnDccwdl1H7Lvjt68GtR1CcstU6Jwa+/+dN6m1LuWfxpyOwiw\nkTLUB4r/8b7dPzUV9h7Iej93NCf5AWVEymFiZaNeeCY3WF4LLgFuR0jp0L4T\nrB2AHx/F9UceY81NnPyuF0wti1raoGmkfKAnGkxy/yynZimLRtkRyEojdXjf\nOGzF8Atv1i2mpmsXlnw90LQ4fhM6KUqe34HxABNRChxXu4CuSW0SGyA00rCJ\nofetLcA+qOBUu6wttKY1b4Ym4TBQYA4kAOE+7s9zR5/mjLZwibsn4KCXaQ4R\nc3ih\r\n=YTZL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFsuQGd4TWasTrwp/ieGp02ikd6selTbz4bpWlQkatfDAiEAzailAEl9yM18TK2BWn4N8c8br2NhC2z6vmxvtjYcYMQ="}],"size":5825,"noattachment":false,"key":"/@commitlint/format/-/@commitlint/format-12.0.1.tgz"},"_npmUser":{"name":"escapedcat","email":"npm@htmlcss.de"},"directories":{},"maintainers":[{"name":"marionebl","email":"hello@mario-nebl.de"},{"name":"martinhelmut","email":"info@martin-fieber.se"},{"name":"escapedcat","email":"npm@htmlcss.de"},{"name":"bycedric","email":"me@bycedric.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/format_12.0.1_1614046543685_0.15148308705691105"},"_hasShrinkwrap":false,"publish_time":1614046543846,"_cnpm_publish_time":1614046543846,"dist-tags":{"latest":"21.2.3"}}